Pls I'm lost in the module 3 python project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pls I'm lost in the module 3 python project

5th Jan 2021, 7:28 PM
Akinmolayemi John
7 Answers
+ 2
I will explain later if no -one responds. starting work now
5th Jan 2021, 7:40 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
First of all you will need to create an input which is an integer. Referred to as N in the exercise. This number will be applied to create a RANGE of numbers. You will then need to iterate through those numbers to achieve the following results. IF the number is divisible by 3, then print Solo ELse IF the number is divisible by 5, print Learn ELse IF the number is divisible by 3, AND is divisible by 5, print SoloLearn ELSE print the number Remember: using % (modulo) is an easy way to determine if a number is divisible Good luck
5th Jan 2021, 8:24 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
The skipping even numbers part I've gone through all the lessons but I don't still know what to do
5th Jan 2021, 7:33 PM
Akinmolayemi John
0
FizzBuzz?
5th Jan 2021, 7:31 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
Yeah like I don't understand
5th Jan 2021, 7:31 PM
Akinmolayemi John
0
Post your attempt, or explain the part you don't understand. We can't provide a complete solutiin
5th Jan 2021, 7:32 PM
Rik Wittkopp
Rik Wittkopp - avatar
- 1
This should help: for a in range(1, int(input())): if a % 2 == 1: if a % 15 == 0: print("SoloLearn") elif a % 3 == 0: print("Solo") elif a % 5 == 0: print("Learn") else: print(a)
6th Jan 2021, 7:58 AM
Calvin Thomas
Calvin Thomas - avatar