Advertisements
Advertisements
Question
Predict the output of the following Python code:
text="Learn Python with fun and practice"
print(text.partition("with"))
print(text.count("a"))Very Short Answer
Advertisements
Solution
('Learn Python ', 'with', ' fun and practice')
3
shaalaa.com
Is there an error in this question or solution?
