The Artima Developer Community
Sponsored Link

Python Answers Forum
just a simple loop question

2 replies on 1 page. Most recent reply: Sep 12, 2004 2:37 PM by boogle

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
boogle

Posts: 3
Nickname: misterpink
Registered: Sep, 2004

just a simple loop question Posted: Sep 12, 2004 2:10 PM
Reply to this message Reply
Advertisement
hey im really new to python so i mess around alot to try to figure things out, i just was trying to test out my knowledge of this so i might be ahead of the gang when we get our next python assignment

what do i need to add to this to make it loop??



this is what i have so far


x=input ("Choose a number:")
y=input ("Choose a second number:")

if x==y:
print "Finished, they are equal"
if x<y:
x=x+1
print x




what do i need to change or add???


boogle

Posts: 3
Nickname: misterpink
Registered: Sep, 2004

Re: just a simple loop question Posted: Sep 12, 2004 2:11 PM
Reply to this message Reply
by the way im trying to get it to count from x to y

i forgot to tell ya that

boogle

Posts: 3
Nickname: misterpink
Registered: Sep, 2004

Re: just a simple loop question Posted: Sep 12, 2004 2:37 PM
Reply to this message Reply
i figured it out! lol sorry

Flat View: This topic has 2 replies on 1 page
Topic: Problem calling a COM dll Previous Topic   Next Topic Topic: read function and different file types

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use