Python Exercise #3 | Convert Length from Centimeters to Inches | Beginner Tutorial

Publicado em: 07 Novembro 2025
no canal de: Python Made Easy
185
24

LinkedIn:
  / yasmen-mahmoud  

In this video, we’ll solve a simple Python exercise step by step 👩‍💻
The program asks the user to enter a length in centimeters.
If the user enters a negative value, it prints “Invalid entry”.
Otherwise, it converts the length from centimeters to inches.

✅ Formula used:
1 inch = 2.54 cm

This exercise helps you practice:

Using input() to take user input

Working with if / else conditions

Performing basic math operations

Printing results in Python

💬 Don’t forget to like 👍, subscribe 🔔, and leave a comment if you understood the explanation!

#python #pythonprogramming #pythonbeginner #learnpython #pythonexercise #codingforbeginners #pythonifelse #cmtoinches


Nesta página do site você pode assistir ao vídeo on-line Python Exercise #3 | Convert Length from Centimeters to Inches | Beginner Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python Made Easy 07 Novembro 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 185 vezes e gostou 24 espectadores. Boa visualização!