avocadont69
avocadont69 avocadont69
  • 23-03-2022
  • Computers and Technology
contestada

[Python] Spot the errors in the code
x = int(input()
if x == 5
print(x is equal to 5)
else:
print("x is not equal to 5")

Respuesta :

beinggreat78
beinggreat78 beinggreat78
  • 23-03-2022

Answer:

  1. There's no string double quotes in the print statement on line 3.
  2. The input statement on line 1 is wrong. It should actually be the following ⇒ print(input(Hello World))

All print statements must contain double quotes around a string. Otherwise, it will be interpreted as a number, and will lead to an error.

Answer Link

Otras preguntas

What is the speed of the tip of the minute hand of a clock where the hand is of length 7cm?​
please answer this question GIVING BRAINLIEST!!
Please give a full answer I will make you the brainiest Your father owns a restaurant and you are helping him out by doing odd jobs around the restaurant for y
what is the name of the triangle​
1 What is the equation of the line parallel to 8x - 16y= -14 and passing through (3, 0)?
calculate 8.694 times 10 to the power of 2 ( standard form) plz helpppp
The Us gained control of the land it needed to build the panama canal by
figure out a way the Milgram experiments connect to the Topic 'Communication' and write a Thesis about it.
what are the 4 energy transformations of a dash toy
They had better ----------. They are becoming weaker and weaker day by day. A. Stop smoking B. Stopped smokingC. stopping to smokeD. to stop smokingNote:Explain