Welcome, Guest

Author Topic: Hello World but also Wello Horld  (Read 1331 times)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Hello World but also Wello Horld
« on: June 09, 2012, 10:13:50 AM »
import random
def lottery():
    for i in xrange(1):
        yield random.randint(1,40)
for x in lottery():
    if x > 0:
        if x <30:
            print 'Hello World'
    if x > 30:
        print 'Wello Horld'

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Hello World but also Wello Horld
« Reply #1 on: June 09, 2012, 01:57:31 PM »
Maybe the creation of a python topic would be in order?