forked from mouredev/Hello-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype_hints.py
More file actions
19 lines (14 loc) · 446 Bytes
/
Copy pathtype_hints.py
File metadata and controls
19 lines (14 loc) · 446 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Clase en vídeo: https://youtu.be/_y9qQZXE24A?t=1810
### Type Hints ###
my_string_variable = "My String variable"
print(my_string_variable)
print(type(my_string_variable))
my_string_variable = 5
print(my_string_variable)
print(type(my_string_variable))
my_typed_variable: str = "My typed String variable"
print(my_typed_variable)
print(type(my_typed_variable))
my_typed_variable = 5
print(my_typed_variable)
print(type(my_typed_variable))