Computer Science
How many times is the word 'HELLO' printed in the following statement?
s = "python rocks"
for ch in s:
print ("Hello")
Related Questions
How does '*' operator behave on strings?
Explain function split() with an example.
Write the output of the following:
>>> x = "hello" >>> print(x[1:-2])Write the output of the following:
string = "Hello Madam, I love Tutorials" substring = "Madam" if string.find(substring) != -1: print("Python found the substring!") else: print("Python did NOT find the substring!")