+ 4
n will need to be an integer, so start with n = int(input()) then create your range (1,n) using a for loop write a couple of if statements using % there are a number of different ways to put it together. play with it and see how you go
21st Nov 2020, 3:16 AM
Rik Wittkopp
Rik Wittkopp - avatar