Search posts, tags, users, and pages
Olanrewaju Alaba
Software Engineer || Technical Writer
These are basic string functions() in python🐍. So, let the journey🏁 begin🚀.... find() The find() method finds the first occurrence of the specified value. The find() method returns -1 if the value is not found. input : string = 'python dev' f =...
Tim
input : string = 'This article is written in {}' print (str.format('Python')) Output : This article is written in Python
think this syntax is wrong and thus confusing to someone trying to learn.
Tim
input : string = 'This article is written in {}' print (str.format('Python')) Output : This article is written in Pythonthink this syntax is wrong and thus confusing to someone trying to learn.