How to take string input in python?
![](https://pythonpoint.net/wp-content/uploads/2020/11/What-is__init__-in-python_-6-1024x576.jpg)
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)
![](https://pythonpoint.net/wp-content/uploads/2020/11/Screenshot-703-1024x583.png)
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