#12 Python Tutorial for Beginners | Number System Conversion in Python

This video lesson explains different number systems used in programming, including binary, decimal, octal, and hexadecimal. Instructor Navin Reddy demonstrates how to convert numbers between decimal and other number systems both manually on paper and using Python built-in functions like bin(), oct(), and hex().

⏱️ Chapter Timeline

Scroll horizontally →

✨ AI Takeaways & Lesson Breakdown

1
Programming relies on multiple number systems: binary (base 2), decimal (base 10), octal (base 8), and hexadecimal (base 16).
2
Hexadecimal format is commonly used in networking for MAC addresses and IPv6, utilizing digits 0-9 and letters A-F.
3
Python provides built-in functions to convert decimal numbers: bin() for binary, oct() for octal, and hex() for hexadecimal.
4
Binary representations in Python are prefixed with '0b', octal with '0o', and hexadecimal with '0x'.
5
To convert a decimal number to binary manually, repeatedly divide the number by 2 and read the remainders in reverse order from bottom to top.
6
To convert a binary number back to decimal, multiply each binary digit (1s only) by increasing powers of 2 starting from 2 raised to 0 from right to left, and sum the results.
Sponsored Ad Space
Promote with us • Contact to place your banner

Course Content

25 Lessons Total

Playlist
01
#0 Python for Beginners | Programming Tutorial
02
#1 Python Tutorial for Beginners | Introduction to Python
03
#2 Python Tutorial for Beginners | Python Installation | PyCharm
04
#3 Python Tutorial for Beginners | Getting Started with Python
05
#4 Python Tutorial for Beginners | Variables in Python
06
#5 Python Tutorial for Beginners | List in Python
07
#6 Python Tutorial for Beginners | Tuple | Set in Python
08
Dictionary in Python
09
#7 Python Tutorial for Beginners | Python Set Path in Windows and Help
10
#8 Python Tutorial for Beginners | Python Editor | Sublime Text
11
#9 Python Tutorial for Beginners | More on Variables in Python
12
#10 Python Tutorial for Beginners | Data Types in Python
13
#11 Python Tutorial for Beginners | Operators in Python
►
#12 Python Tutorial for Beginners | Number System Conversion in Python
15
Premium Java and spring boot Courses
16
#13 Python Tutorial for Beginners | IDLE Previous Command | Clear Screen?
17
#14 Python Tutorial for Beginners | Python BitWise Operators
18
#15 Python Tutorial for Beginners | Import Math Functions in Python
19
#16 Python Tutorial for Beginners | Working with PyCharm | Run | Debug | Trace | py file
20
#17 Python Tutorial for Beginners | Swap 2 Variables in Python
21
#18 Python Tutorial for Beginners | User input in Python | Command Line Input
22
#19 Python Tutorial for Beginners | If Elif Else Statement in Python
23
#20 Python Tutorial for Beginners | While Loop in Python
24
#21 Python Tutorial for Beginners | For Loop in Python
25
#22 Python Tutorial for Beginners | Break Continue Pass in Python

Curated Deals

Affiliate Deals
Promote with us • Add deals in your admin panel

🎉 Lesson Progress Check!

Would you like to take a short quiz to test your knowledge on this video before moving on?