0% found this document useful (0 votes)
2 views76 pages

Python Basics

Guido van Rossum created Python, with its first version released in 1991. The document discusses the conversion between decimal and binary numbers, providing examples and calculations. Additionally, it includes links to online compilers and YouTube resources for further learning.

Uploaded by

Monika Dagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views76 pages

Python Basics

Guido van Rossum created Python, with its first version released in 1991. The document discusses the conversion between decimal and binary numbers, providing examples and calculations. Additionally, it includes links to online compilers and YouTube resources for further learning.

Uploaded by

Monika Dagar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 76

In the late 1980s, Guido van Rossum dreamed of developing

Python. The first version of Python 0.9.0 was released in 1991.


Online compilers
• https://www.programiz.com/python-programming/online-compiler/

• https://onecompiler.com/python
Decimal no has base 10 cause range is (0-9)
Binary no has base 2 cause range is (0/1)

decimal to binary conversion


binary to decimal conversion

• (1100100)base2 to (?)base10
• 1*2^6 + 1*2^5 + 0*2^4 + 0*2^3 + 1*2^2 + 0*2^1 + 0*2^0
• 64+32+0+0+4+0+0=100

• 1010 = 1*2^3 + 0*2^2+ 1*2^1 + 0*2^0 (8+0+2+0=10)


• 1111 = 1*2^3 + 1*2^2+ 1*2^1 + 1*2^0 (8+4+2+1=15)
• 0110 = 0*2^3 + 1*2^2+ 1*2^1 + 0*2^0 (0+4+2+0=6)
https://
www.youtube.com/watch?v=MfGfMWsvgCc&list=PLjVLYmrlmj
GcQfNj_SLlLV4Ytf39f8BF7&index=4

https://
www.youtube.com/watch?v=4EaYeZyzIB0&list=PLBlnK6fEyqRiu
eC_HzwFallNO76hfXBB7

https://
www.youtube.com/watch?v=KA5-cfYg8xE&list=PLxCzCOWd7aiF
Nxo4z-inj_sp2LKzF4Bmp

You might also like