Python Paper
Python Paper
Name:: Contact::
len(["hello",2, 4, 6])
a) Error
b) 6
c) 4
d) 3
x = 'abcd'
for i in x:
print(i.upper())
a) A B C D
b) A b c d
c) A
print("abc. DEF".capitalize())
a) Abc. def
b) abc. def
c) Abc. Def
d) ABC. DEF
13. Which of the following statements is used to create an empty set in Python?
a) ( )
b) [ ]
c) { }
d) set()
Input: 11
Output:Prime Number
Input1:14 ; Output:Not a prime number
Input: 5
Output: 120
Input: 5
Output:5*1=5
5*2=10
Upto 5*10=50.
Input:121
Output:Palindrome
Input1:132
Input A=10
B=20
Output: A=20 B=10
Input: [1,3,5,10,14,18,19,21,23,29]
Output:[1,3,5,19,23,29]