Python Coding
Python Coding

@clcoding

11 Tweets 42 reads Dec 28, 2022
Top 10 Python String questions. Questions looks easy. try to answer all questions. There is a reward for all correct answer.
๐Ÿงต:
# Questions 1
1. Choose the correct function to get the character from ASCII number
# Questions 2
Which method should I use to convert String
"welcome to the beautiful world of python"
to "Welcome To The Beautiful World Of Python"
# Questions 3
str1 = "My salary is 7000";
str2 = "7000"
print(str1.isdigit())
# Questions 4
str1 = 'Welcome'
print(str1*2)
# Questions 5
str = "my name is James bond";
print (str.capitalize())
# Questions 6
print("John" > "Jhon")
# Questions 7
print("Emma" < "Emm")
# Questions 8
str = "My salary is 7000";
print(str.isalnum())
# Questions 9
str1 = 'Welcome'
print (str1[:6] + ' PYnative')
# Questions 10
myString = "pynative"
stringList = ["abc", "pynative", "xyz"]
print(stringList[1] is myString)

Loading suggestions...