請填寫 if 條件語句來判斷一個數字是奇數還是偶數。
number = int(input("請輸入一個數字: "))
if ____________: # 填入條件
print("這是偶數")
else:
print("這是奇數")
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
3 questions
白平衡 (White Balance)
Flashcard
•
Professional Development
5 questions
Chinese ( Colour )
Flashcard
•
KG
4 questions
財金程式AB 後測
Flashcard
•
University
6 questions
Bài mở đầu - Điền từ
Flashcard
•
KG
5 questions
04 Coding Challenge: Entry Ticket
Flashcard
•
KG - University
5 questions
SHS 320 Week 14 Practice Questions
Flashcard
•
University
7 questions
Testing-2
Flashcard
•
University
5 questions
程式設計 AB warm-up 3
Flashcard
•
University
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