Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: simple code task
Post: RE: simple code task

i = 0 while i < 5: if i in range(0,6): print int(i) i = i + 0.1 else: print i i = i +0.1 -ive tried also : if i == 0 or i == 1 or i==2 or i ==3 or i == 4 or i == 5:
dan123445 General Coding Help 4 3,107 Jun-13-2018, 01:07 PM
    Thread: simple code task
Post: simple code task

hi , i need some help, how can i print in python all the numbers from 0 to 5 in 0.1 steps , but the numbers (1.0,2.0,3.0,4.0,5.0) will be printed at int type. like that: 0 0.1 0.2 0.3 0.4 0.5 0.6 0...
dan123445 General Coding Help 4 3,107 Jun-13-2018, 12:03 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020