0
How to python
how do i print out numbers between 1 and 9 using "print(1,9)" doesn't seem to work for me so idk what to do
9 Answers
+ 2
Try using a for loop.
nums = []
for i in range(1, 10):
nums.append(i)
print(nums)
+ 2
print(list(range(1,10)))
+ 1
try 1.0 and 9.0
0
the Problem here is the integer and float you compare of an integer with float integer ade higher in the rank as float and the float will be convert implizit
0
The only way I can think is setting a variable to a string. Like this: Numbers = "1,2,3,4,5,6,7,8,9"
print(Numbers)
0
Show in Code Editor print numbers between 1 and 10 his is One of my solutions
- 1
no that only prints out 1.0 and 9.0
- 1
so what should the code look like then? :)
- 1
thanks Henry old pal. works great!



