Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

stem 7. write a program to print \i love to program\ to the screen 2 ti…

Question

stem

  1. write a program to print \i love to program\ to the screen 2 times.
  2. what do we use in order to output multiple lines of text, but only use one print command?
  3. long - term memory used by the computer

a. main memory
b. output
c. input
d. secondary memory

  1. ________ are special output characters marked with a \\

a. strings
b. output characters
c. escape characters
d. echo characters

Explanation:

Step1: Answer 7 in Python

print("I love to program
I love to program")

Step2: Answer 8

Use newline character (
) in print.

Step3: Answer 9

d. secondary memory

Step4: Answer 10

c. Escape Characters

Answer:

7: print("I love to program
I love to program")
8: Use newline character (
)
9: d. secondary memory
10: c. Escape Characters