https://github.com/david2261/python_lessons
Rules and examples of various built-in functions in Python
https://github.com/david2261/python_lessons
functional-programming generators oop pep python
Last synced: 2 days ago
JSON representation
Rules and examples of various built-in functions in Python
- Host: GitHub
- URL: https://github.com/david2261/python_lessons
- Owner: David2261
- License: mit
- Created: 2022-06-08T17:55:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T19:46:57.000Z (over 3 years ago)
- Last Synced: 2024-05-17T02:57:14.918Z (almost 2 years ago)
- Topics: functional-programming, generators, oop, pep, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Basics Lessons of Python
[](https://git.io/typing-svg)
## Tools
   
## 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
```python
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__())
```