3.1 Printing in Python

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

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.")

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.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")


Conjuntos de estudio relacionados

PSY-322 Chapter 16 multiple choice

View Set

9 клас English Career choices @Jobs@

View Set

PGA 3.0 level 2 Business Planning

View Set

Earth Science Regents Honors Chapter 1 Review

View Set

Kinesiology in Action Based Practice- Exam 1

View Set

English File Beginner Common verb phrases 2

View Set

peds - chapters 29, 30, 34 eye ear and dental

View Set

Chapter 12 Psychology, Chapter 13 Psychology, Chapter 14 Psychology

View Set

S86 T-cell receptor and T-cell activation

View Set