 False
by using all the concept this python string format and previous articles let’s do one simple character count project. The overview of the project is input sentence from the user and also take input for key what user want to count. And count this character and display it.
text=input('Enter text.... ') key=input('Enter Character you want to count') count=0 text=text.lower() key=key.lower() for i in text: if i==key: count+=1 print('the character '+key+' in your sentense have',count)
In this article we learn about python string format from basic to advance. In summery here is list what we learn from this article.
- Looking Inside Python String and Slicing
- Looping Through String
- String Concatenation
- Python String Method
- String Operation
Ok, this is the end of the articles I hope you you can get a good lesson what I deliver in this article. I ask forgiveness for any word and behave which are not to be. If you want to do a project on data science and machine learning here is link of real-time face mask detection using OpenCV. Thank you for your kind and attention guys. Stay tuned for the next article. If you have any question regarding this article please feel free to comment below.