Como Usar Funções Dentro de While em Python

This video is an excerpt from a lesson in the complete Python course. IMPORTANT LINKS: Complete Python Course — Part 1:    • Curso de Python Completo | Do Zero ao Proj...   Complete Python Course — Part 2:    • Curso de Python Completo | Parte 2: Try Ex...   Complete lesson from which this excerpt was taken:    • Funções em PYTHON - Tudo o que Você Precis...   In this video, you will learn how to combine functions with `while` loops in Python to create more interactive programs. We start by using a function that receives a name, returns a welcome message, and is called inside a `while True` loop, allowing the program to continue running until the user enters an option to exit. Then, we create a practical example of discount calculation. The program receives the purchase value using `input()`, converts this value to a float, calls a function that calculates the discount, and displays the final price using f-strings. During the lesson, you will also understand the use of break, return, while True, data conversion, f-strings, and number formatting with two decimal places. This video is an excerpt from a lesson in the complete Python for Beginners course.