Jump to content

Recommended Posts

Posted

5019

  • Inactive Member
Posted

5020

  • Inactive Member
Posted

5022

Posted
# "for" loop

y = 0
for i in range(0, 5024, 1):
    y += 1
    if y == 5023:
        break

print(y) # 5023
  • Like 1
  • Inactive Member
Posted

5024

  • Platinum VIP
Posted

5025

Posted
# count_number random generator 
import random

def counting_vol_2():
    while True:
        count = random.randint(1, 10000)
        if count == 5026:
            return count

print(counting_vol_2()) # 5026
  • Inactive Member
Posted

5027

Posted
x = (len([i for i in range(1, 15085) if i % 3 == 0]))
print(x) # 5028
Posted (edited)

5030

Edited by SlitfaceJR
miscount
  • Inactive Member
Posted

5032

  • Platinum VIP
Posted

5033

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.