Fill in the if condition to check whether a number is odd or even.
number = int(input("Enter a number: "))
if ____________: # Fill in the condition
print("This is an even number")
else:
print("This is an odd number")
If conditional statement
Flashcard
•
Mathematics
•
University
•
Hard
Ariel LU
Used 1+ times
FREE Resource
Student preview
4 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a number is odd or even.
number = int(input("Enter a number: "))
if ____________: # Fill in the condition
print("This is an even number")
else:
print("This is an odd number")
Back
number % 2 == 0
2.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether the user is eligible to vote (18 years or older).
age = int(input("Enter your age: "))
if ____________: # Fill in the condition
print("You are eligible to vote")
else:
print("You are not eligible to vote yet")
Back
age>=18
3.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a number is positive or negative.
number = int(input("Enter a number: "))
if ____________: # Fill in the condition
print("The number is positive")
else:
print("The number is negative")
Back
number >= 0
4.
FLASHCARD QUESTION
Front
Fill in the if condition to check whether a student has passed (score ≥ 60) or failed.
score = int(input("Enter your score: "))
if ____________: # Fill in the condition
print("You passed!")
else:
print("You failed")
Back
score>=60
10 questions
Циклдік операторлар. 6.1 Цикл ішінде циклдер 6.2 Continue опер
Flashcard
•
KG - University
9 questions
Java OOP
Flashcard
•
Professional Development
7 questions
[862] Esp_Unity M1L2
Flashcard
•
KG
8 questions
Methods
Flashcard
•
University
5 questions
FTA FLASHCARD REVIEW
Flashcard
•
12th Grade
6 questions
Java Class and Object Concepts
Flashcard
•
12th Grade
4 questions
SAMPLE
Flashcard
•
KG - University
9 questions
Ben's Flashcard
Flashcard
•
KG - University
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
19 questions
Math Review
Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review
Quiz
•
7th Grade