Python is popular because of its easy coding. This English like script is modular and code can be reused. It is an interpreted, object oriented and high level language with dynamic semantic.
Guido van Rossum known as the creator of the Python programming language.
Python is a case-sensitive language
indentation matters
Block of codes are maintained by using same indent. Line of codes within a particular loop or if condition is maintained within the same indent. Nested loops also maintain the similar indenting condition.
Using Editor for Python
You can use Jupyter notebook for your coding in your system or use Google Colab the cloud based platform for your Python code.
Built in Functions
Based on our requirements we can add modules available in Python environment. However there are some basic functionality which are required for execution of standard programs. These basic functions are available as part of the core Python and we don’t have to import / include any additional module to use them. Built in Functions in Python »
operating system interfaces
Interact with operating system by using the os module. Create or manage directory and files and move to different location within the system. os: operating system interfaces »
Python Version
import sys
print(sys.version)
Output ( may change based on installation )
3.7.10 (default, Feb 20 2021, 21:17:23)
Using Command Line interface ( type cmd in search or type cmd in Run box )
python --version
Installed libraries
Display a list of installed libraries available with Python. ( Try it in Colab also. )
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com
29-07-2022
-2
I have created small hotel management system using Python and Sqlite3. Before I convert it to Python exe, everything is fine. Whenever I close the program and reopen it again, I see everything I inserted into it.
But when I convert it to Python exe using Pyinstaller, an error arises. Everything I inserted into my Python exe file gets lost when I close the app and reopen it.
Please I appreciate your help.
05-08-2022
The supporting files should be created in one directory. Try to keep all supporting files in one location and then create the .exe