codehs unit 7 python complete solution
codehs unit 7 python complete solution 7.1.7 Fix This Tuple - ANSWER-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 - ANSWER-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 - ANSWER-# 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 - ANSWER-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_poin
Written for
- Institution
- Codehs unit 7 python
- Course
- Codehs unit 7 python
Document information
- Uploaded on
- February 23, 2024
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- codehs unit 7 python
-
717 fix this tuple answer mytuple 0 1 2
Also available in package deal