-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex6.py
More file actions
30 lines (23 loc) · 769 Bytes
/
ex6.py
File metadata and controls
30 lines (23 loc) · 769 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
# A variable for the amount of people and a text string describing it.
types_of_people = 10
x = f"There are {types_of_people} types of people."
# A variable for defining binary and don't along with Y
binary = "binary"
do_not = "don't"
y = f"Those who know {binary} and those who {do_not}."
# A simple print out of X and Y
print(x)
print(y)
# A print of x and y with additional text
print(f"I said: {x}")
print(f"I also said: '{y}'")
# A variable to define hilarious and joke eval
hilarious = False
joke_evaluation = "Isn't that joke so funny?! {}"
# A print of two variables
print(joke_evaluation.format(hilarious))
# Additional variable definition
w = "This is the left side of..."
e = "a string with a right side."
# A print of w and e variables.
print(w + e)