Samuel Guta
# review and run example using \n (new line)
print('Hello World!\nI am formatting print ')
# review and run code using \t (tab)
student_age = 17
student_name = "Hiroto Yamaguchi"
print("STUDENT NAME\t\tAGE")
print(student_name,'\t' + str(student_age))
# review and run code
# using \" and \' (escaped quotes)
print("\"quotes in quotes\"")
print("I\'ve said \"save your notebook,\" so let\'s do it!")
# using \\ (escaped backslash)
print("for a newline use \\n")
# [ ] print "\\\WARNING!///"
print('"\\\WARNING!///"')
# [ ] print output that is exactly (with quotes): "What's that?" isn't a specific question.
print(""""What's that?""")
# [ ] from 1 print statement output the text commented below using no spaces
# One Two Three
# Four Five Six
print("One\tTwo\tThree\nFour\tFive\tSix")
# [ ] create and test pre_word()
def pre_word():
word = input('*enter a word that starts with "pre": *')
if word.startswith("Pre") or word.startswith("pre") == True and word.isalpha() == True:
print("Valid Pre Word!")
return True
else:
print("Not A Valid Pre Word")
return False
pre_word()
# [ ] review, run, fix
print("Hello" + "\n" + "World!")