Nstructions
When we read code and predict its output, it is called tracing code.
For thi...
Computers and Technology, 12.10.2020 21:01 jair512872
Nstructions
When we read code and predict its output, it is called tracing code.
For this lesson, you will come up with your own challenging algorithm for other students to trace. It must contain at least 5 if statements and use at least one AND or OR boolean condition.
Note: Elif or else statements will not count - your statements must be if statements. Each if statement should use a unique
For this challenge, try reading 3 or 4 of your classmates' code as well. Trace their code and predict what it will output, then check the code by running it to see if you got it right, and submit your work for a grade
name = input("What's your name?")
if name == "no" or name == "NO" or name == "name":
print("That's not a name!")
else:
print("Hello " + name)
age = int(input("How old are you?"))
if age < 13:
print("Why are you on the Internet??")
elif age < 18:
print("High school's cool")
else:
print("Wow, a real adult!")
dogs = input("Do you like dogs?")
if dogs == "yes" or dogs == "YES":
fish = input("Do you also like fish?")
if fish == "yes" or fish == "YES":
print("What an animal lover!")
else:
print("Yeah, dogs are great!")
else:
cats = input("What about cats?")
if cats == "no" or cats == "NO":
print("Maybe horses or bunnies?")
else:
print("Cats are cool")
Answers: 1
Computers and Technology, 24.06.2019 21:30
Along what line of action can the camera move to follow the movement of actors for screen direction? a. along a 90-degree arcb. along a 120-degree arcc. along a 180-degree arcd. along a 360-degree arc
Answers: 1
Computers and Technology, 24.06.2019 21:50
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
Computers and Technology, 25.06.2019 14:00
Ken paid $12 for two magazines. the cost of each magazine was a multiple of $3. what are the possible prices of the magazines?
Answers: 1
Computers and Technology, 26.06.2019 01:00
Aseries circuit and identify how voltage is split up by each load in the circuit?
Answers: 1
Mathematics, 18.07.2019 22:30
Social Studies, 18.07.2019 22:30
Biology, 18.07.2019 22:30
Computers and Technology, 18.07.2019 22:30
Mathematics, 18.07.2019 22:30
Computers and Technology, 18.07.2019 22:30
Mathematics, 18.07.2019 22:30