how to obtain output of string "hello world is beautiful" joined by hyphen as'hello-world-is-beautiful'
cant we reassign s='Hello' or use capatilize fn(s=s.capitalize)?
s="%%"+"-*20+"%%"print(s) //Assignment solved by MONISH.V.S IRTT college,Erode
How to split the string "Hello" to obtain individual alphabets?
23203 visits
Outline:What are strings? How are strings denoted in Python? String concatenation Multiply a string with an integer Accessing individual elements of a string Accessing elements of a string using negative indices Split() function Join() function Define a string in different ways Print a string repeatedly
What are strings? How are strings denoted in Python? String concatenation Multiply a string with an integer Accessing individual elements of a string Accessing elements of a string using negative indices Split() function Join() function Define a string in different ways Print a string repeatedly
Show video info
Pre-requisite