Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

challenge activity 1.4.1: basic syntax errors. retype the statements, c…

Question

challenge activity 1.4.1: basic syntax errors.
retype the statements, correcting the syntax error in each print statement.
print(predictions are hard.\)
print(especially about the future.)
user_num = 5
print(\user_num is:\ user_num)

see how to use zybooks for info on how our automated program grader works.
696332 5708494 qx3zqy7
1 print(\predictions are hard.\)
2 print(\especially about the future.\)
3 user_num= 5
4 print(\5|is:\ user_num)
5

Explanation:

Step1: Fix quote mismatch

print('Predictions are hard.')

Step2: Add quotes to string

print("Especially about the future.")

Step3: Fix string-variable concatenation

print("user_num is:", user_num)

Answer:

print('Predictions are hard.')
print("Especially about the future.")
user_num = 5
print("user_num is:", user_num)