Skip to main content

PYTHON PROGRAMMING


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.

Comments

Popular posts from this blog

SAMPLE QUESTIONS ASKED DURING INTERVIEW

Sample Questions Asked During the Interview 1. Introduce Yourself Good morning/afternoon. Thank you for the opportunity to introduce myself. I'm (Your_Name), a recent M.Sc., Applied Data Science graduate eager to kickstart my career at (Company_Name). I have a solid foundation in Python, SQL, and Machine Learning, thanks to my coursework and practical projects completed during my studies.  I am a detail-oriented and analytical thinker who thrives in collaborative settings. During my academic journey, I have developed effective communication and time management skills, which I believe are essential for success in the workplace.  I am a dedicated and enthusiastic individual, always seeking opportunities to expand my knowledge and skills.  I am confident that my strong work ethic, willingness to learn, and passion will make me a valuable asset to your team. 2. How Are You?     Thank you for asking, I'm doing well. I'm excited to be here today for this interview and...

Must-Visit Websites for Everyday Solutions

 Must-Visit Websites for Everyday Solutions 1.   COCKATOO Cockatoo supports transcription in a wide range of languages, making it easy to  convert audio to text in your preferred language. 2.  ARCSEARCH The Browser Company helps you move even faster. It brings you everything you are searching for, quickly and without distractions. 3.  SIMPLIFIED       Create anything you imagine with AI on your side. 4.   ANDISEARCH A sleek tool called Andi combines the convenience of a chatbot with the credibility of a standard search setup—and it might just be the answer we need.