Skip to content

ongechi/python-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-strings

the programs are about strings in python.Strings in python are surrounded by either single quotation marks, or double quotation marks. the programs talk about string methods string formatting finding the length using springs indexing the strings using [] operator treating numbers as characters How to create a string in python To create a string, put the sequence of characters inside either single quotes, double quotes, or triple quotes and then assign it to a variable. You can look into how variables work in Python in the Python variables tutorial. For example, you can assign a character 'a' to a variable single_quote_character . How to read a string in python To read a string from console as input to your Python program, you can use input() function. input() can take an argument to print a message to the console, so that you can prompt the user and let him/her know what you are expecting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages