Lesson 20: Revisiting basics

posted Mar 22, 2018, 8:04 AM by Attila Lengyel
word = input("Give me a word:")
for w in word:
  print(w)
  

while(input("How are you doing?").lower()=="good"):
  print("Really?")

print("I'm doing GOOOOD too")

tree=""
for l in range(0,3):
  for x in range(0,6):
    for y in range(0,11):
      if y > 6 - x and y < 6 + x: 
        tree += "*"
      else:
        tree += " "
    print(tree)
  
    tree = ""
Comments