Thread: python homework need help asap!!

Results 1 to 3 of 3
  1. #1 python homework need help asap!! 
    Donator
    abd1's Avatar
    Join Date
    Nov 2011
    Posts
    707
    Thanks given
    150
    Thanks received
    67
    Rep Power
    38
    Hello.
    So i must write a code in python using loops to print the folowing:

    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3
    1 2
    1

    I must use the "while" loop, and againg i must use the "for" loop.

    could anyone hint me a way to do it? even in java loops ill understand.
    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2012
    Posts
    72
    Thanks given
    23
    Thanks received
    11
    Rep Power
    116
    This site has similar problems along with the answers to the problem: Program Arcade Games With Python And Pygame
    This might help think through what you are meant to do
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    793
    Thanks given
    204
    Thanks received
    176
    Rep Power
    173
    Code:
    while True:
        for this in range(0, 5):
            print """
    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3
    1 2
    1 """
    kek/10
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Need help ASAP
    By CTucker in forum Application Development
    Replies: 3
    Last Post: 10-21-2009, 05:08 PM
  2. Need help ASAP
    By bmaw in forum Requests
    Replies: 1
    Last Post: 10-08-2009, 04:10 AM
  3. need help ASAP
    By atrix676 in forum Help
    Replies: 2
    Last Post: 08-01-2009, 10:48 PM
  4. Need Help ASAP
    By jcopus in forum Help
    Replies: 3
    Last Post: 05-16-2009, 06:23 PM
  5. Need Help Asap Nothing Big [Delta]
    By rawrscaperawrs in forum Help
    Replies: 6
    Last Post: 05-09-2009, 12:21 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •