Pyth
Pyth
Prajjwal Bhatt
Class 11th CBSE
PYTHON PROGRAMMING
CODE:
OUTPUT:
2. Input three numbers and display the largest and smallest number.
CODE:
OUTPUT:
OUTPUT:
CODE:
4. Generate the following pattern using nested loop.
OUTPUT
CODE:
CODE:
OUTPUT:
CODE:
OUTPUT:
OUTPUT:
10. Input a string and determine whether it is a palindrome or
not; convert the case of characters in a string.
CODE:
OUTPUT:
OUTPUT:
CODE:
OUTPUT:
CODE:
OUTPUT:
14. Input a list of numbers and find the smallest and largest
numbers from the list.
CODE:
OUTPUT:
15. Create a dictionary with the roll number, name and marks of
n students in a class and display the names of students who
have marks above 75.
CODE:
OUTPUT: