ZhongliXiansheng
ZhongliXiansheng ZhongliXiansheng
  • 20-05-2021
  • Computers and Technology
contestada

Hattie uses the line of code num == 7 to assign the number 7 to the variable named num. What correction should be made?

This is in Python

Respuesta :

60002135330 60002135330
  • 20-05-2021

Answer:

num = 7

Explanation:

num == 7 is basically asking "does variable num = 7".

== is for verification and = is for assigning

Answer Link

Otras preguntas

Read the excerpt from "The Royal House of Thebes." Some hours later, Creon in the palace was startled by a shout, "Against your orders Polyneices has been burie
A. 0 B. Nonexistent C. 1 D. -1
plz help me i need help part A inputs: 7 8 9 10 11 outputs: 8 9 10 11 12 What is the rate of change of the equation from Part A? Compare the equation from Part
what role did japan, planes, transport, and weapon play in World War II
The sum of twice a number and 3 times the same number as 40. What is the number?
Can Some1 help?? When using the "ball and stick" drawing method of drawing a compound, which element usually goes in the center of the model?
Two dice are rolled. A = ‘sum of two dice equals 3’ B=‘sumoftwodiceequals7’ C=‘at least one of the dice shows a 1’ (a) What is P (A|C)? (b) What is P (B|C)? (c)
Things did not go quite as planned. You invested ​$21360​, part of it in a stock that paid​ 12% annual interest.​ However, the rest of the money suffered a​ 5%
Do you know this it is for social studies
crystal ball see your glass