I need helping creating a random number of "hello worlds"


import random

count = 0

while count < 5:
count += 1
print "Hello World"


dont know where to put the module

import random

count = 4

while count < 5:
count += 1
random.randrange(6)print "Hello World"


2nd try

import random

count = random.randrange(4)

while count < 5:
count += 1
print "Hello World"


Got it. Thank you me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.