Solo Learn (Python for Beginners): Sum of Consecutive Numbers

Sum of Consecutive Numbers No one likes homework, but your math teacher has given you an assignment to find the sum of the first N numbers. Let’s save some time by creating a program to do the calculation for you! Take a number N as input and output the sum of all numbers from 1 … Continue reading Solo Learn (Python for Beginners): Sum of Consecutive Numbers

Solo Learn (Python for Beginners): BMI Calculator

Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s calculated using a person's weight and height, using this formula: weight / height²The resulting number indicates one of the following categories:Underweight = less than 18.5Normal = more or equal to 18.5 and less than 25Overweight = more or equal to 25 and less … Continue reading Solo Learn (Python for Beginners): BMI Calculator

Solo Learn (Python for Beginners): Tip Calculator

Variables: When you go out to eat, you always tip 20% of the bill amount. But who’s got the time to calculate the right tip amount every time? Not you that’s for sure! You’re making a program to calculate tips and save some time. Your program needs to take the bill amount as input and … Continue reading Solo Learn (Python for Beginners): Tip Calculator

Solo Learn (Python for Beginners): Leaderboard

Strings You need to make a program for a leaderboard.The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot:1.2.3....You can use the \n newline character to create line breaks, or, alternatively, create the desired output using three double quotes """. Solution 1: As you can see … Continue reading Solo Learn (Python for Beginners): Leaderboard

Solo Learn (Python for Beginners): Flight Time

I've graduated decades ago so I am not updated on the latest trends and programming languages that emerged since Visual Basic, Turbo C, C++ and Java. I heard about this Python language and how user-friendly it is, so let's try this new language and hopefully to finish the Beginners Course. For those of you who … Continue reading Solo Learn (Python for Beginners): Flight Time