Write the python statement and the output for the following:
(a)Find the third occurrence of ‘e’ in ‘sequence’.
(b)Change the case of each letter in string ‘VaIBhAv’.
(c)Whether ‘Z’ exists in string’Yugaan’ or not.
Answers
Answered by
5
Answer:
2.4 Statements
A statement is an instruction that the Python interpreter can execute. We have seen two kinds of statements: print and assignment. When you type a statement on the command line, Python executes it and displays the result, if there is one. The result of a print statement is a
Answered by
5
print("sequence"[-1])
print("VaIBhAv".lower())
print("Z" in "Yugaan")
Similar questions