[Python #1] create e6.py
This commit is contained in:
parent
3607d22d20
commit
63495c51de
2 changed files with 29 additions and 0 deletions
22
kjg/python-the-hard-way/e6.py
Normal file
22
kjg/python-the-hard-way/e6.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
types_of_people = 10
|
||||
x = f"There are {types_of_people} types of people."
|
||||
|
||||
binary = "binary"
|
||||
do_not = "don't"
|
||||
y = f"Those who know {binary} and those who {do_not}."
|
||||
|
||||
print(x)
|
||||
print(y)
|
||||
|
||||
print(f"I said: {x}")
|
||||
print(f"I also said: '{y}'")
|
||||
|
||||
hilarious = False
|
||||
joke_evaluation = "Isn't that joke so funny?! {}"
|
||||
|
||||
print(joke_evaluation.format(hilarious))
|
||||
|
||||
w = "This is the left side of..."
|
||||
e = "a string with a right side."
|
||||
|
||||
print(w + e)
|
|
@ -52,3 +52,10 @@ Actually that's not too heavy.
|
|||
He's got Blue eyes and Brown hair.
|
||||
His teeth are usually White depending on the coffee.
|
||||
If I add 35, 74, and 180 I get 289.
|
||||
**** ex6
|
||||
There are 10 types of people.
|
||||
Those who know binary and those who don't.
|
||||
I said: There are 10 types of people.
|
||||
I also said: 'Those who know binary and those who don't.'
|
||||
Isn't that joke so funny?! False
|
||||
This is the left side of...a string with a right side.
|
||||
|
|
Loading…
Reference in a new issue