
If 條件子句
Flashcard
•
Mathematics
•
University
•
Hard
Ariel LU
Used 2+ 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
[BR-PT] Python LVL1_М1L4
Flashcard
•
KG
5 questions
Three Hints Challenge
Flashcard
•
University
8 questions
Mandarin
Flashcard
•
KG
3 questions
Emergent Literacy Concepts
Flashcard
•
University
10 questions
Vocabulary Flashcard Inside Reading 2/Going underground
Flashcard
•
University
10 questions
Chinese Vocab
Flashcard
•
KG - University
10 questions
肥胖與運動
Flashcard
•
University
5 questions
[TUR] Python NEW_М1L2
Flashcard
•
KG
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade