Exercício Python #003 - Somando dois números
How to Create a New File in Python
Introduction to the Exercise
- The instructor introduces an exercise involving inputting values and performing calculations, emphasizing that students should engage actively with the material.
- The lesson focuses on creating a new file as part of the third challenge in a web pages course, indicating this is the last time this specific task will be taught.
Setting Up the Project
- Instructions are given for opening existing projects in Python, specifically mentioning how to close and reopen projects if needed.
- The third exercise requires creating a program that reads two numbers and displays their sum. Students are encouraged to review previous lessons for context.
Importance of Active Learning
- The instructor stresses that merely watching videos without practice does not lead to learning; hands-on experience is crucial.
- Emphasis is placed on typing out code rather than copying it, as this reinforces learning and understanding of programming concepts.
Implementing Input and Output
- A demonstration shows how to read inputs from users and perform calculations, highlighting common mistakes such as incorrect data types leading to errors.
- The instructor explains converting input values into integers before performing arithmetic operations, ensuring accurate results.
Final Thoughts on Learning Programming
- Despite being labeled easy, the exercise serves as a reminder that attention to detail is vital when coding; small mistakes can lead to significant issues.
- Students are encouraged to utilize available resources like playlists for structured learning and reminded about certification upon course completion after passing an exam.