Small Python School #3
We continue to study Python. Small Python School, lesson 3.
The daily rate is 14-15 minutes.
Theses:
- Special cascade branching. If - never.
- Library turtle (turtle); From the logos language.
- The volume of standard libraries is huge. Everything can be found on the main python site
- Def - creating a function, name def Name(): and then the text of the function without
- Therefore, it is important to observe the "beauty" of the dough.
- The first barrier - to teach a person to move the movement of the execution of commands. So that a person learns to associate commands with actions.
- The second is functions, decompositions.
- Third - data structures.
- Further - algorithms.
- Python's Golden Foundation - the world of names and the world of objects. Objects do not depend on names, this is called the reference data model in Python. The name is a reference to an object.
- Type - belongs to the object, not the name. Python's logic is such that there are no variables. There are mutable objects and immutable objects.
- Objects in Python are created during the calculation.
The daily rate is 1/2-1/3 lessons.
Theses:
- int - integer 0 250 -42
- float - real number 5.0 -83.32
- str - character string, quotes are single or double, you can make multi-line text - for this, you need to put 3 quotes in a row at the beginning and at the end.
- bool - boolean type (true/false)
- True False must be capitalized
- type - find out the type of the object
- Types can be converted into one another, convert types.
- To get an integer from a string, it is enough to wrap the string value in the int function.
- From numeric to string - str(555);
- Not assignment, but binding.
- An object that is not referenced by any name is removed from memory.
First lesson: https://steemit.com/hive-152587/@alexmove.witness/small-python-school-1
Second lesson:
https://steemit.com/hive-152587/@alexmove.witness/small-python-school-2
Small Python School Support Chat:
https://t.me/+lQtdzunysoxhOTgy
Thanks for studying.
Thank you for your attention.
Have a good day!
Hi, Thanks for the message. We just voted for your witness. Hope you will vote for us :) @tomoyan.witness
Thank you
Thank you very much!
I voted for @tomoyan.witness now :)