0
Pls I'm lost in the module 3 python project
7 Antworten
+ 2
I will explain later if no -one responds.
starting work now
+ 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
+ 1
The skipping even numbers part I've gone through all the lessons but I don't still know what to do
0
FizzBuzz?
0
Yeah like I don't understand
0
Post your attempt, or explain the part you don't understand.
We can't provide a complete solutiin
- 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)