Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

odehs unit 7 python questions and answers Graded A+

Document preview thumbnail
Preview 2 out of 11 pages

odehs unit 7 python questions and answers Graded A+ 7.1.7 Fix This Tuple - 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 - def citation(names): author_name = ((names)) name = str(names[2]) + ", " + str(names[0]) + " " + str(names[1]) return name print(citation(["Martin", "Luther", "King, Jr."]))

Content preview

codehs unit 7 python questions and answers
Graded A+
7.1.7 Fix This Tuple - ✅✅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 - ✅✅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 - ✅✅# 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 - ✅✅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 - ✅✅# fill in this function to return a list containing each
character in the name
name = "Jessica"


def spell_name(name):
spell_out = list(name)

Document information

Uploaded on
March 13, 2026
Number of pages
11
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£10.56

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wisegrades
5.0
(1)
Sold
27
Followers
3
Items
18981
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions