Foundations-of-Programming-Python 무료 덤프문제 온라인 액세스

시험코드:Foundations-of-Programming-Python
시험이름:Foundations of Programming (Python) - E010 JIV1
인증사:WGU
무료 덤프 문항수:62
업로드 날짜:2026-09-01
평점
100%

문제 1

Which punctuation mark must appear at the end of an if statement line?

문제 2

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

문제 3

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

문제 4

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

문제 5

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

댓글 추가

귀하의 메일주소는 공개되지 않습니다. 필수 입력 사항은 표시되어 있습니다. *

insert code
그림의 인증번호를 입력하세요.