Foundations-of-Programming-Python 무료 덤프문제 온라인 액세스
| 시험코드: | Foundations-of-Programming-Python |
| 시험이름: | Foundations of Programming (Python) - E010 JIV1 |
| 인증사: | WGU |
| 무료 덤프 문항수: | 62 |
| 업로드 날짜: | 2026-09-01 |
Complete the function get_dict_keys(data) that takes a dictionary and returns a list of all its keys.
For example, get_dict_keys({ " name " : " John " , " age " : 25}) should return [ " name " , " age " ].
def get_dict_keys(data):
# TODO: Return a list of all dictionary keys
pass
Write a complete function calculate_discount(price, discount_percent) that calculates and returns the final price after applying a discount percentage.
For example, calculate_discount(75, 20) should return 60.0.
def calculate_discount(price, discount_percent):
# TODO: Calculate and return the final price after discount
pass
Complete the function format_name(first, last) that takes a first name and last name and returns them combined as " last, first " .
For example, format_name( " John " , " Smith " ) should return " Smith, John " .
def format_name(first, last):
# TODO: Return the name in " last, first " format
pass