3.1 Printing in Python
What does the following Python code display? print("Hello") print("World") A. Hello World B. HelloWorld C. Hello World D. Hello World
Correct Answer: A. Hello World
Which Python code segment will display "Hello, world!" on the screen? A. display Hello, world! B. print("Hello, world!") C. print "Hello, world!" D. "Hello, world!"
Correct Answer: B. print("Hello, world!")
3.1.6: Fix This Program! (The second line did not have enclosed quotes to signal that it is a string)
print("Hi there!") print("My favorite color is magenta.")
3.1.5: Introduce Yourself (This can have different value like the name and what you like)
print("My name is Sera!") print("I like to sunny skies.")
3.1.7: Vertical name (Name may vary)
print("S") print("e") print("r") print("a")