Source Code for this lecture: 🔗 https://github.com/engrayaz/python-fo...
In this lecture, we learn Type Casting in Python — how to manually convert one data type into another using built-in functions like int(), float(), and str().
This video is part of the “Python for Academic & Engineering Students” series designed for:
• FSc & ICS students (Pakistan)
• College students
• Engineering students
• Mathematics & Physics students
• University beginners
• Anyone starting programming from scratch
📌 In this lecture, you will learn:
• What is Type Casting in Python
• Converting int → float and string → float
• Converting float → int (important concept: truncation vs rounding)
• Converting string → int
• Converting int & float → string
• Understanding data types using type()
• Common mistakes and hidden pitfalls beginners make
⚠️ Important Concept Covered:
When converting float to int, Python removes the decimal part (truncation) — it does NOT round the number.
This course builds strong programming foundations and prepares students for advanced fields like:
• Artificial Intelligence
• Machine Learning
• Signal Processing
• Data Science
📌 Full Playlist:
• Python for Academic & Engineering Students
👨🏫 Instructor:
Dr. Syed Ayaz Ali Shah
Assistant Professor | Artificial Intelligence | Signal Processing
📢 Subscribe for structured Python, Engineering & AI tutorials
On this page of the site you can watch the video online How to convert between int,float and string in python|Python Type Casting Explained with Examples with a duration of hours minute second in good quality, which was uploaded by the user Signals and Systems 26 April 2026, share the link with friends and acquaintances, this video has already been watched 11 times on youtube and it was liked by 0 viewers. Enjoy your viewing!