-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataTypes.py
More file actions
31 lines (25 loc) · 735 Bytes
/
Copy pathdataTypes.py
File metadata and controls
31 lines (25 loc) · 735 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
# A variable = A container for a value, and there, Strings, integers, floats, and booleans
# Variables behave as if it was the value it contain
# strings, a series of characters
first_name = "Mike"
food = "pizza"
email = "e@kipmyk.co.ke"
# Integers
age = 25
quantities = 3
num_of_students = 30
# float
price = 10.99
gpa = 3.2
distance = 5.5
# Boolean
is_student = True
# Displaying variables
print(f"Hello {first_name}, it seems you like {food}, and your email is {email}")
print(f"You are {age} years old")
print(f"You are buying {quantities} items")
print(f"My uni class had {num_of_students}")
print(f"The price is ${price}")
print(f"My GPA is {gpa}")
print(f"You ran {distance} km")
print(f"Are you a student?: {is_student}")