Foundations-of-Programming-Python 試験問題を無料オンラインアクセス
| 試験コード: | Foundations-of-Programming-Python |
| 試験名称: | Foundations of Programming (Python) - E010 JIV1 |
| 認定資格: | WGU |
| 無料問題数: | 62 |
| 更新日: | 2026-08-26 |
A program needs to update all values in a list by adding 5 to each number. Which for loop structure accomplishes this task?
Complete the function calculate_tip(bill, tip_percent) that calculates and returns the tip amount based on the bill and tip percentage.
For example, calculate_tip(50, 20) should return 10.0.
def calculate_tip(bill, tip_percent):
# TODO: Calculate and return the tip amount
pass
Fix the indentation error in this function that should return a greeting message.
def greet(name):
return " Hello " + name