forked from mouredev/Hello-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_01_variables.py
More file actions
30 lines (22 loc) · 730 Bytes
/
_01_variables.py
File metadata and controls
30 lines (22 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
my_string_variable = "My string"
print(my_string_variable)
my_int_variable = 5
print(my_int_variable)
my_int_to_str_variable = str(my_int_variable)
print(my_int_to_str_variable)
print(type(my_int_to_str_variable))
my_bool_variable = False
print(my_bool_variable)
#Concatenar cadena
print (my_string_variable, my_int_variable, my_bool_variable)
print("Este es valor de:", my_bool_variable)
print(len(my_string_variable))
# Variables en una sola linea
name, surname, alias, age = "Antonio", "García", "MKY", 35
print("Mi nombre es:", name, "Mi apellido es:", surname, "Mi apodo es:", alias, "Mi edad es:", age)
"""
first_name = input('What is your name: ')
age = input('How old are you? ')
"""
print(first_name)
print(age)