Minichan
Hot
Topics
Bumps
Replies
New topic
History
Watchlist
Bulletins
Events
Folks
Search
Shuffle
Stuff
Topic: import random
Anonymous
A
started this discussion
8 years ago
#73,508
num1 = int(input("Enter an integer: "))
num2 = int(input("Enter a larger integer: "))
num = 0
max_num = random.randint(num1, num2)
while num <= max_num:
num += 1
print(num)
Watch
24 visits
Anonymous
B
joined in and replied with this
8 years ago
, 2 minutes later
[^]
[v]
#875,111
Might have some trouble with negative integers.
Big Daddy Derek
!Uvm54ORbmo joined in and replied with this
8 years ago
, 4 minutes later, 6 minutes after the original post
[^]
[v]
#875,112
@OP
oindexter
Get laid. Thanks.
Anonymous
D
joined in and replied with this
8 years ago
, 1 hour later, 1 hour after the original post
[^]
[v]
#875,129
@875,111
(B)
Incorrect. I tested this and it works fine.
Topic locked.
[Top]
Name
:
Please familiarise yourself with the
rules
and
markup syntax
before posting.
↕
Note: Your browser's JavaScript is disabled; some site features may not fully function.