-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01_variables.py
More file actions
46 lines (32 loc) · 883 Bytes
/
01_variables.py
File metadata and controls
46 lines (32 loc) · 883 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Variables
from sre_constants import SRE_FLAG_IGNORECASE
my_variable = 'My variable is too good'
print(my_variable)
first_name = 'Sergio'
last_name = 'Lattke'
country = 'venezuela'
age = 23
skills = ['javascript, python, git, github, Markdown']
bool = (3 > 5)
print(bool)
person_info = {
'firstname':'Sergio',
'lastname':'Lattke',
'country':'Venezuela',
'age':'23',
'skills':'javascript, python, git, github, Markdown'
}
print(person_info)
# concatenation
new_variable = str(age)
print(new_variable)
print(type(new_variable))
print('this is my name:', first_name)
# system functions
print(len(first_name))
# variables in one line
name, surname, gender, pets = 'Sergio', 'Lattke', 'Male', 5
print('my name is:', name, surname, 'i have:', pets, 'pest and im:', gender)
# inputs
print(input('What is your name?: '))
print(input('how old are you?: '))