Question: if you type 'a' then the result is "51 41 31 21 11 1 -9 -19 -29 -39 -49 " however, i want to make it like this ""51 41 31 21 11 _ -9 -19 -29 -39 -49 " the user must type in a number of what they think fits the pattern. I want to be displayed just like that. Python btw. number = 10 c = str(input('type letter a: ')) c.lower() if c == 'a': for value_1 in range (11): step_ini1 = (number * 5) + 1 next_val1 = step_ini1 - (number * value_1) n1 = int(next_val1) int(1) == '' print(n1, end=' ')
Question: if you type 'a' then the result is "51 41 31 21 11 1 -9 -19 -29 -39 -49 " however, i want to make it like this ""51 41 31 21 11 _ -9 -19 -29 -39 -49 " the user must type in a number of what they think fits the pattern. I want to be displayed just like that. Python btw.
number = 10
c = str(input('type letter a: '))
c.lower()
if c == 'a':
for value_1 in range (11):
step_ini1 = (number * 5) + 1
next_val1 = step_ini1 - (number * value_1)
n1 = int(next_val1)
int(1) == ''
print(n1, end=' ')
Step by step
Solved in 3 steps with 2 images