# 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!///")
\\\WARNING!///
# [ ] print output that is exactly (with quotes): "What's that?" isn't a specific question.
print("\"What\'s that?\" isn\'t a specific question.")
"What's that?" isn't a specific question.
# [ ] 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")
One Two Three
Four Five Six
# [ ] create and test pre_word()
word = input("nter a word that starts with \"pre\": ")
def pre_word(word):
if word.startswith("pre") and word.isalpha():
return True
else:
return False
if word == False:
print('this is not a \"pre\" word')
else:
print('this is a valid \"pre\" word')
pre_word("publication")
# [ ] review, run, fix
print("hello, world\n")
hello, world