Use Python
Submit both screenshots of codes and output
1. Print your full name 10 times using loops (use both for and while loops) [5+5]
2. What is the value of parameter i to print 5? Explain briefly what is happening here. [3+2]
1 def function1(i):
2
return i-1
3
4 def function2(i):
5
6
7
return function1(i)+4
print(function2(i)) #what is the value of parameter i to print 5
3. Create and print the dictionary \"Car\" with the following keys and values: [5]
Key Value
Car Honda
Year 2020
Owner abc
Color black
4. Add another key with it's value to the previous dictionary \"Car\" [4]
Key: Passenger
value: toy
5. Delete the key \"Owner\" from the \"Car\" dictionary [2]
6. WSU={"dept":"Tech", "Student":"abc","Instructor":"def"} [4]
Check whether the dictionary \"WSU\" has a key called \"building\" or not using if-else statement
7. Cerate and print a list \"list1\" with the following elements:[2]
1,2,4,9,34,55
8. Create and print a list \"list2\" with the following elements: [2]
40,56,39,6,90
9. Add list1 and list2 that you created in Q7 and Q8 and name the new list as \"list\" and print it [2]
10. Sort the elements for the list that you created in Q9 and print it [3]
11. Remove element \"90\" from the \"list\" [3]
12. Find out the number of element in the \"list\" [3]