bitcoin
bitcoin

$87959.907984 USD

1.34%

ethereum
ethereum

$2920.497338 USD

3.04%

tether
tether

$0.999775 USD

0.00%

xrp
xrp

$2.237324 USD

8.12%

bnb
bnb

$860.243768 USD

0.90%

solana
solana

$138.089498 USD

5.43%

usd-coin
usd-coin

$0.999807 USD

0.01%

tron
tron

$0.272801 USD

-1.53%

dogecoin
dogecoin

$0.150904 USD

2.96%

cardano
cardano

$0.421635 USD

1.97%

hyperliquid
hyperliquid

$32.152445 USD

2.23%

bitcoin-cash
bitcoin-cash

$533.301069 USD

-1.94%

chainlink
chainlink

$12.953417 USD

2.68%

unus-sed-leo
unus-sed-leo

$9.535951 USD

0.73%

zcash
zcash

$521.483386 USD

-2.87%

Cryptocurrency News Video

Make your code SPEAK! (User input in Python) // Season 1 episode 3

Jun 19, 2026 at 03:00 pm HexaPython

🔥 Make your programs ALIVE and INTERACTIVE! Welcome to episode 3 of your Python training for complete beginners. Until now, your code only displayed static text or did calculations in its corner. Today, everything is changing: we are learning how to make the computer interact with the user! You'll discover how to move from passive code to a dynamic program that asks questions, listens to the answers and adapts. In this video, we will dissect the magical input() function and push the print() function to its limits (with the secret parameters sep, end and the absolute power of f-strings). You will also discover the ultimate trap that makes all beginners fail: converting data types with int() and float(). Stay until the end to code our first two mini-projects together: a calculator and a quiz! 🚀 TAKE THE VIDEO CHALLENGE! It's time to get practical. Create your “ID card” program and share your script in the comments section! Your program must: 1. Ask for the first name with a simple input(). 2. Ask for age (converted with int()). 3. Request the size (converted with float()). 4. Display a nice custom summary sheet using f-strings. I will read and correct ALL your codes! Let your imagination speak. --- 📌 ON THE PROGRAM FOR THIS EPISODE: 00:00 - Introduction: Making your programs interactive 01:12 - Reminder of print() and the display of multiple values 01:49 - The secret parameters of print(): "sep" and "end" 02:51 - A detailed dive into f-strings and on-the-fly calculations 03:35 - Discovery of input(): Putting your program on break 04:14 - input() in practice: Chaining questions and answers 04:50 - The ultimate TRAP of input(): Why your code will crash (class 'str') 05:33 - The solution: Convert types with int() and float() 06:23 - Watch out for conversion errors! Understanding the ValueError 07:09 - The magic combo: Combine input(), int() and f-strings 07:52 - Mini-project #1: Create a complete calculator in a few lines 08:26 - Mini-project #2: Develop an interactive Quiz with a points system 09:01 - Your challenge of the day (To post in comments!) 09:34 - Summary of concepts and teaser of the Episode 4 (Conditions: if, elif, else) --- 🛠️ USEFUL LINKS AND REMINDERS: 👉 Complete Playlist Season 1 (The Basics): https://www.youtube.com/playlist?list=PLxtab282AzR9oxKPuUZYN0LJ4oarlZC5T 👉 Official Python website: https://www.python.org 👉 Website official VS Code: https://code.visualstudio.com --- 💡 WHAT YOU LEARNED TODAY (CHECK AID): • print("A", "B", sep="-") -- Allows you to change the default space to the separator of your choice (here "AB"). • print(f"Text {my_variable}") -- f-strings allow you to inject variables or calculations directly into the text between braces. • variable = input("Question") -- Pauses the program and ALWAYS retrieves the answer as text (str). • age = int(input("Age? ")) -- Combines input() and int() on a single line to directly convert the input to an integer and be able to do math with it! --- 🎓 ABOUT HEXAPYTHON: HexaPython is your French-speaking resource for mastering development with Python. Whether you are aiming for a professional retraining, want to automate tasks, or are simply curious, this channel supports you with clear, dynamic formats and without unnecessary jargon. Next episode: We are going to give a real "brain" to our programs by allowing them to make logical decisions based on the user's choices thanks to the conditions (if / elif / else)! A very big piece not to be missed. Activate the bell 🔔 so you don't miss the rest of the season! If you liked the video, leave a huge thumbs up 👍, a comment for SEO, and share the video with your friends! #Python #InputPython #Fstrings #LearnCode #PythonForBeginners #HexaPython #VSCode #Programming #TutoPython #PythonCalculator
Video source:Youtube

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Other videos published on Aug 12, 2026