
If 條件子句

Flashcard
•
Mathematics
•
University
•
Hard

Ariel LU
Used 1+ times
FREE Resource
Student preview

4 questions
Show all answers
1.
FLASHCARD QUESTION
Front
請填寫 if 條件語句來判斷一個數字是奇數還是偶數。
number = int(input("請輸入一個數字: "))
if ____________: # 填入條件
print("這是偶數")
else:
print("這是奇數")
Back
number % 2 == 0:
2.
FLASHCARD QUESTION
Front
請填寫 if 條件語句來檢查使用者是否符合投票的年齡(18歲及以上)。
age = int(input("請輸入你的年齡: "))
if ____________: # 填入條件
print("你可以投票")
else:
print("你尚未符合投票年齡")
Back
age>=18
3.
FLASHCARD QUESTION
Front
填寫 if 條件來檢查一個數字是正數還是負數。
number = int(input("輸入一個數字: "))
if ____________: # 填寫條件
print("這是正數")
else:
print("這是負數")
Back
number >= 0
4.
FLASHCARD QUESTION
Front
填寫 if 條件來檢查學生是否通過(成績 ≥ 60)還是未通過。
score = int(input("輸入你的成績: "))
if ____________: # 填寫條件
print("你通過了!")
else:
print("你未通過")
Back
score>=60
Similar Resources on Wayground
5 questions
Nonfiction Text Features

Flashcard
•
KG - University
4 questions
Cat cat cat

Flashcard
•
12th Grade
5 questions
一、找出划线词语的相应汉字 Tìm chữ Hán tương ứng với từ gạch chân

Flashcard
•
KG
3 questions
UD_2024_Dec

Flashcard
•
12th Grade
5 questions
財金程式 warm up quiz 4

Flashcard
•
University
5 questions
Day 1-Python Print Function

Flashcard
•
Professional Development
7 questions
Digital Citizenship

Flashcard
•
KG
8 questions
Mastering Python Loops, Functions, and Lists

Flashcard
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade