Skip to content

6hack9/LPRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LPRC

Learn Python by Reading Code

Here you can read code with comment that explain the code

variable and data type

Variable

Variables are containers for storing data values.

Rule to Declare variable

  1. Variable names can contain only letters numbers and underscores
  2. Space are not allowed in variable but underscore can be used
  3. Avoid using Python keyword and function name as variable
  4. Variable names are case-sensitive (age, Age and AGE are three different variables)

Most commonly used function in string operation are

len() # to determine the string length
title() # make uppercase first character of each word
upper() # convert string to upper case
strip() # Remove space 
lstrip() # Remove space form left side
rstrip() # Remove space form right side
split() # split string and return it in list types
join() # method takes all item in an iterable and join them into one string
count() # count string character
replace()
startwith()

About

Learn Python by Reading Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages