Made a variables file to learn variable syntax works
This commit is contained in:
1 parent
30ecccfa3d
commit
155806212a
2 files changed
+9
No files matched your search
File renamed without changes.
@@ -0,0 +1,9 @@
|
|||||||
|
character_name = "George"
|
||||||
|
character_age = "70"
|
||||||
|
is_male = True
|
||||||
|
|
||||||
|
print("There once was a man " + character_name + ",")
|
||||||
|
print("he was " + character_age + " years old.")
|
||||||
|
print("He really liked the name " + character_name + ",")
|
||||||
|
print("but he didn't like being " + character_age + ".")
|
||||||
|
|
||||||
Reference in new issue
Block a user