How to take string input in python?
The python strings are characters enclosed in single, double and triple quotes. Python strings are immutable. Strings are sequence of characters, where each character has a unique position id/index.
We can easily take input of string using input() function.
e.g.,
s=input("enter the string-") print(s)
In this way by using input() function we can take the input of the string in python.
Subscribe
Login
Please login to comment
0 Discussion