Enlist Applications for Python Programming
Enlist Applications for Python Programming
9. Explain the use of pass and else keywords with for loops in Python
12. Write a Python Program to find the factorial of a number provided by the user
15. Write Python code for finding the greatest among four numbers.
1,2
1,2,3
1,2,3,4
22. Given the tuple T = ('spam', 'Spam', 'SPAM!', 'SaPm'), write the output for the following
operations:
print(T[2])
print(T[-2])
print(T[2:])
print(list(T))
23. Explain different functions or ways to remove a key-value pair from a dictionary
24. Explain any four set operations with examples.
: indices = ['zero', 'one', 'two', 'three', 'four', 'five'] i) indices[:4] ii) indices[:-2]