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
12 questions
Mathematical Operators in Python

Quiz
•
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
10 questions
Python Basics

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

Quiz
•
6th - 8th Grade
8 questions
Introduction to Python, variables and data types

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade