Python is an Open source, Free, High-level, Dynamic, and Interpreted programming language. It is cleanest and easy to learn a language in the programming world. It’s easy syntax improved the readability of the code.
#learnpython #pythonprogramming #TECHFRIEDRICE
BYTE CODE- Machines are not able to understand the human language or high-level languages thus whenever we write code in any programing language, machine used a compiler or an interpreter to convert the human-readable code to machine code.
#learnpython #pythonprogramming
We have many implementations of python programming in different languages. Some are:
CPython
Jython
PyPy
IronPython
Stackless Python
MicroPython
#learnpython #pythonprogramming #TECHFRIEDRICE
Applications of PYTHON
1. Web development
2. Data science
3. ML and AI
4. Game development
5. IOT
6. DESKTOP GUI APPLICATIONS
7. Web scrapping
8. cloud computing
9. NLP
10. Image and video processing
#learnpython #pythonprogramming #TECHFRIEDRICE
Garbage collection:
Garbage collection is a tool used by the programming languages to delete the objects in memory that are not in the use.
import gc
print('Threshold is:', gc.get_threshold())
#learnpython #pythonprogramming #TECHFRIEDRICE
Dynamic typing and static typing are two different attributes of programing language on which they can be divided. Python is a dynamically typed language which means checking of the variable is done at the runtime.
Whereas in the Statically typed language the checking of the variables or any other is done at the compile time.
Precision handling
import math
val = 32.332
print("value:",math.trunc(val))
print("value:",math.ceil(val))
print("value:",math.floor(val))
Output :
value: 32
value: 33
value: 32
Python’s Decimal Module Manages Precision
import math
val = 32.33789
print("value: %.2f"%val)
print("value: {0:.2f}".format(val))
print("value:",round(val,4))
Output:
value: 32.34
value: 32.34
value: 32.3379
hex() Function in Python Programming Language is used to convert any type of representation of a number to hexadecimal. Hexadecimal numbers are represented with base 10.
- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Comments
Post a Comment