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

why was the battle of the bulge a "turning point" in WWII? Write in your own words.
The acronym VAWA refers to Violence Against Women Act. True False
Prompt #2: ine Males and females often enjoy playing the same sport. Some people believe that males and females should be able to play on the same competitive t
how long will it take to transfer a 3000ckB using a 56Kb per second dial up modem
Why are lupine important to primary succession?
Someone please make a random question with an easy answer because i need one more brainliest to UPGRADE!
What were the British Army’s objectives going into the campaign of 1862? What were the United States?
1. Characterized by trench warfare, stretched from Belgium to Switzerland *
what does the map in cellphone tell you ​
I have 1265 points dont steal any -_- ( i know you will but how you're day) please dont report this is just for the people who work hard on this app enjoy the 1