Which of the following Python code is correct?
Python-Code Right or Wrong

Quiz
•
Computers
•
7th - 8th Grade
•
Medium
Timothy Whiting
Used 26+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
age = input ("What is your age? ")
age=input ("What is your age? ")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
if age>=18
print(You are old enough to vote)
if age>=18:
print("You are old enough to vote")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
age=int(input("How old are you? "))
age=int(input("How old are you? ")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
if age>=18:
print("Congrats! You are old enough to vote!!")
else:
print("You are NOT old enough to vote. Sorry Charlie")
else:
print("You are NOT old enough to vote. Sorry Charlie")
if age>=18:
print("Congrats! You are old enough to vote!!")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
ans1=input What is the capital of Texas?
ans1=input("What is the capital of Texas? ")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
while ans1!="Austin":
print("No, try...try again")
ans1=input("What is the capital of Texas? ")
while ans1!="Austin":
print("No, try...try again")
ans1 ("What is the capital of Texas? ")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code is correct?
while counter<13:
product = counter * 9
print(str(counter) + " x 9 = " + str(product))
while counter<13:
product = counter * 9
print(counter) + " x 9 = " +(product))
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Python basics

Quiz
•
6th - 8th Grade
15 questions
Edublocks yr 8

Quiz
•
7th Grade
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade