Skip to content

David2261/Python_Lessons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Basics Lessons of Python

Typing SVG

Tools

Sublime Text Python Windows Google

Description

I have encountered such a problem that I do not remember or do not know many built-in Python functions. Therefore, I have created a small repository for many built-in language tools

  • Relevant topics:
    • Functions
    • OOP
    • List
    • Generators
    • String manipulation

Example

class Plan:

	def __init__(self, name, salary):
		self.v1 = name
		self.v2 = salary

	def __str__(self):
		return f'User name is {self.v1} and his/her salary\'s {self.v2}\n'

	def __repr__(self):
		return f'User (name={self.v1}, salary={self.v2})\n'

val = Plan('Duck', 7000)

print(val.__str__() + val.__repr__())

About

Rules and examples of various built-in functions in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages