

FUNCTIONS redux
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Brandon Lopez
Used 4+ times
FREE Resource
0 Slides • 7 Questions
1
Open Ended
Display the following output:
Hello John
Good morning Kevin
Hola Juan
Using only calls to the function below,
def greet(name_to_greet, greeting):
print(greeting, name_to_greet)
2
Open Ended
Convert 2 celsius to Kelvin. Then Convert 32 Fahrenheit to celsius. Your code may only include calls to the functions below.
def convert(f):
c = (f - 32) * (5/9)
print(f, "f =", c, "c")
def convert2(c):
k = c + 273.15
print(c, "c =", k, "k")
3
Open Ended
Get the following output:
Kevin, Jane, Alex
Kevin, Jane, Alex
Your code may only use a function call to the function defined below:
def names(w, x, y, z):
new = (z + ", " + w + ", " + x) + "\n"
new = new * y
print(new)
4
Open Ended
Get the output shown in the picture, using only a single function call to the function defined below:
def display(a, b, c, d, e):
print("*" * e)
print("*" * c)
print("*" * b)
print("*" * a)
print("*" * d)
5
Open Ended
Get the output shown in the screenshot using only a single function call to the function defined below:
def display(a, b, c):
bottom = "*" * c
middle = (" " a) + ("*" * b)
top = (" " * (b-1)) + ( "*" )
print(top)
print(middle)
print(bottom)
6
Open Ended
Write a function definition. This function should take two parameters. One parameter for the person's first initial, one for the person's last name. This function should print out the person's name in the following format, for example, if the name is John Doe:
J. Doe
Call the function with 4 names
7
Open Ended
Write a function definition. This function should take two parameters, side_a, side_b. Using these two parameters, calculate the hypotenuse. Then call the function with the arguments: 4, 3. You should get 5. Then call the function again with arguments: 7, 24. You should get 25.
Display the following output:
Hello John
Good morning Kevin
Hola Juan
Using only calls to the function below,
def greet(name_to_greet, greeting):
print(greeting, name_to_greet)
Show answer
Auto Play
Slide 1 / 7
OPEN ENDED
Similar Resources on Wayground
8 questions
Mastering Parameters
Presentation
•
9th - 12th Grade
6 questions
LYNX Calendar Challenge (2/13/24)
Presentation
•
9th - 12th Grade
2 questions
Bell Ringer
Presentation
•
9th - 12th Grade
6 questions
Jenis Jenis Pemrograman
Presentation
•
9th - 12th Grade
6 questions
Big Data- Lesson 4
Presentation
•
9th - 12th Grade
7 questions
Virtualization
Presentation
•
9th - 12th Grade
3 questions
Code Combat Key Terms #4
Presentation
•
9th - 12th Grade
7 questions
Lección#9 Operaciones Matemáticas Simples
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
12 questions
5th Grade Map and Informational Processing Skills
Quiz
•
5th Grade
10 questions
Understanding Albinism
Quiz
•
9th Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
33 questions
Purvis High School Staff Handbook Quiz
Quiz
•
Professional Development
29 questions
Laboratory Safety Rules
Quiz
•
6th Grade
17 questions
Expectations & Procedures Review
Quiz
•
6th Grade
10 questions
Common Denominators
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Understanding Albinism
Quiz
•
9th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
14 questions
Flinn Lab Safety
Quiz
•
9th - 12th Grade
73 questions
Reading Graphs
Quiz
•
9th - 12th Grade
10 questions
2026-2027 Chemistry Pre-assessment Quiz
Quiz
•
10th Grade
17 questions
Week 1 Leadership Class
Quiz
•
9th - 12th Grade
20 questions
Characteristics of Life
Quiz
•
9th - 10th Grade
40 questions
Unit 5 Review
Quiz
•
9th - 12th Grade