Foundations-of-Programming-Python 試験問題を無料オンラインアクセス
| 試験コード: | Foundations-of-Programming-Python |
| 試験名称: | Foundations of Programming (Python) - E010 JIV1 |
| 認定資格: | WGU |
| 無料問題数: | 62 |
| 更新日: | 2026-10-15 |
Fix the missing return statement in this function that should return whether a number is even.
def is_even(number):
if number % 2 == 0:
True
else:
False
Complete the function update_grade(grades, student, new_grade) that takes a grades dictionary, a student name, and a new grade, then updates that student ' s grade and returns the dictionary.
For example, update_grade({ " Alice " : 85, " Bob " : 90}, " Alice " , 95) should return { " Alice " : 95, " Bob
" : 90}.
Complete the function add_item(numeric_list, new_number) that takes a list of numbers and a new number, and returns a new list that appends the new number to the end of the list.
For example, add_item([1, 2, 3], 4) should return [1, 2, 3, 4] .