100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

codehs unit 7 python || TRIED AND TESTED QUESTIONS WITH 100% CORRECT ANSWERS!!

Beoordeling
-
Verkocht
-
Pagina's
6
Cijfer
A+
Geüpload op
19-05-2025
Geschreven in
2024/2025

7.1.7 Fix This Tuple correct answers my_tuple = (0, 1, 2, "hi", 4, 5) # Your code here... my_tuple = my_tuple[:3] + (3,) + my_tuple[4:] print(my_tuple) 7.1.8: Citation correct answers def citation(names): author_name = ((names)) name = str(names[2]) + ", " + str(names[0]) + " " + str(names[1]) return name print(citation(["Martin", "Luther", "King, Jr."])) 7.1.9: Diving Contest correct answers # fill in this function to return the total of the three judges' scores! judges_scores=(10,10,10) def calculate_score(judges_scores): return judges_scores[0]+judges_scores[1]+judges_scores[2] print (calculate_score(judges_scores)) 7.1.10: Coordinate Pairs correct answers import math # fill in this function to return the distance between the two points! first_point = (1, 1) second_point = (4, 5) def distance(first_point, second_point): x1= first_point[0] x2= second_point[0] y1= first_point[1] y2= second_point[1] power1 = pow(y2 - y1, 2) power2 = pow(x2 - x1, 2) return (power1 + power2) print (distance(first_point, second_point)) 7.2.6: Spell It Out correct answers # fill in this function to return a list containing each character in the name name = "Jessica" def spell_name(name):

Meer zien Lees minder
Instelling
CodeHS
Vak
CodeHS









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CodeHS
Vak
CodeHS

Documentinformatie

Geüpload op
19 mei 2025
Aantal pagina's
6
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

codehs unit 7 python || TRIED AND TESTED
QUESTIONS WITH 100% CORRECT ANSWERS!!
7.1.7 Fix This Tuple correct answers my_tuple = (0, 1, 2, "hi", 4, 5)

# Your code here...
my_tuple = my_tuple[:3] + (3,) + my_tuple[4:]

print(my_tuple)

7.1.8: Citation correct answers def citation(names):
author_name = ((names))
name = str(names[2]) + ", " + str(names[0]) + " " + str(names[1])
return name

print(citation(["Martin", "Luther", "King, Jr."]))

7.1.9: Diving Contest correct answers # fill in this function to return the total of the three
judges' scores!
judges_scores=(10,10,10)

def calculate_score(judges_scores):
return judges_scores[0]+judges_scores[1]+judges_scores[2]

print (calculate_score(judges_scores))

7.1.10: Coordinate Pairs correct answers import math

# fill in this function to return the distance between the two points!

first_point = (1, 1)
second_point = (4, 5)

def distance(first_point, second_point):
x1= first_point[0]
x2= second_point[0]
y1= first_point[1]
y2= second_point[1]
power1 = pow(y2 - y1, 2)
power2 = pow(x2 - x1, 2)
return math.sqrt (power1 + power2)

print (distance(first_point, second_point))

7.2.6: Spell It Out correct answers # fill in this function to return a list containing each
character in the name
name = "Jessica"

def spell_name(name):

, spell_out = list(name)
return spell_out

print (spell_name(name))

7.2.8: Listed Greeting correct answers # fill in this function to greet the user!

user_info = "Booba"

def greeting(user_info):
greeting = user_info.split()
return "Hello, " + (greeting[0]) + "! I also enjoy " +(greeting[-1]) + "!"

print (greeting(user_info))

7.2.9 Top Movies correct answers # Enter your code here
movie_list = ["John Wick 3", "Angry Birds Movie", "Rush Hour 2", "Ip Man"]
print(movie_list[0])
movie_list[0] = "Star Wars"
print(movie_list[0])

7.3.6: Max In List correct answers # your function should return the maximum value in
`my_list`

def max_int_in_list(my_list):
return 0

my_list = [1, 3, 456, 2038]

def max_int_in_list(my_list):
highest = my_list[-1]
for num in my_list:
if num > highest:
highest = num
return highest

biggest_int = max_int_in_list(my_list)

print (biggest_int)

7.3.7: Owls correct answers # this function should return the number of words that contain
"owl"!

def owl_count(text):
return 0

text ="I really like owls. Did you know that an owl's eyes are more than twice as big as the
eyes of other birds of comparable weight? And that when an owl partially closes its eyes
during the day, it is just blocking out light? Sometimes I wish I could be an owl."
€10,51
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
ProPerfomer (self)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
431
Lid sinds
2 jaar
Aantal volgers
322
Documenten
8502
Laatst verkocht
1 week geleden
Global Scholars’ Resource Hub

Welcome to your ultimate exam success hub! We provide top-quality, up-to-date, and approved exam materials—study guides, practice tests, and notes for a variety of subjects. Whether you’re preparing for school, college, or professional exams, our resources are designed to help you study smarter and score higher. Thousands have passed with our materials—now it’s your turn!Need more resources or something specific? Contact me anytime, and I’ll be happy to help you find exactly what you need. Your success is our mission!" ✅ Covers multiple subjects and exam types ✅ Includes real practice questions, answers, and study tips ✅ Ideal for students, test takers, and last-minute review Your Exam Success Starts Here – Grab Your Bundle Before It’s Gone!

Lees meer Lees minder
3,9

83 beoordelingen

5
36
4
25
3
9
2
1
1
12

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen