Support Forums
I don't know why I made this... But I did... - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Python Programming Language (https://www.supportforums.net/forumdisplay.php?fid=32)
+---- Thread: I don't know why I made this... But I did... (/showthread.php?tid=2083)



I don't know why I made this... But I did... - nevets04 - 10-23-2009

Code:
import time
import os
def part1():
    os.system("clear")
    print "    -   - "
    print "     ---  "
    print "      -   "
    print "  --------"
    print "      -   "
    print "      -   "
    print "     - -  "
    print "    -   - "
    print "  -      -"
    time.sleep(1)    
    os.system("clear")
def part2():    
    print "      -   - "
    print "       ---  "
    print "        -   "
    print "    --------"
    print "        -   "
    print "        -   "
    print "       - -  "
    print "      -   - "
    print "    -      -"
    time.sleep(1)    
    os.system("clear")
def part3():    
    print "        -   - "
    print "         ---  "
    print "          -   "
    print "      --------"
    print "          -   "
    print "          -   "
    print "         - -  "
    print "        -   - "
    print "      -      -"
    time.sleep(1)
    os.system("clear")
while True:
    part1()
    part2()
    part3()
    part2()
    part1()

Maybe someone can take this concept and make a little movie Big Grin
Heres a cool design I was able to make with this concept
Code:
import time
import os
def part1():
    print " ===================.  .  .  .  .  .  .  .  .  .==================="
def part2():
    print "  ===================.  .  .  .  .  .  .  .  .  .==================="
def part3():
    print "   ===================.  .  .  .  .  .  .  .  .  .==================="
def part4():
    print "    ===================.  .  .  .  .  .  .  .  .  .==================="
def part5():
    print "     ===================.  .  .  .  .  .  .  .  .  .==================="
def part6():    
    print "      ===================.  .  .  .  .  .  .  .  .  .==================="
def part7():
    print "       ===================.  .  .  .  .  .  .  .  .  .==================="
while True:
    part1()
    time.sleep(0.1)
    part2()
    time.sleep(0.1)
    part3()
    time.sleep(0.1)
    part4()
    time.sleep(0.1)
    part5()
    time.sleep(0.1)
    part6()
    time.sleep(0.1)
    part7()
    time.sleep(0.1)
    part6()
    time.sleep(0.1)
    part5()
    time.sleep(0.1)
    part4()
    time.sleep(0.1)
    part3()
    time.sleep(0.1)
    part2()
    time.sleep(0.1)
    part1()



RE: I don't know why I made this... But I did... - Codine - 10-23-2009

I don't think im 100% sure why you made this either, but thanks.. I might have to make the next section if i get some spare time lol.


RE: I don't know why I made this... But I did... - nevets04 - 10-23-2009

(10-23-2009, 08:00 PM)Codine Wrote: I don't think im 100% sure why you made this either, but thanks.. I might have to make the next section if i get some spare time lol.

Lol, yeah. Pretty stupid, but strangely addicting Big Grin


RE: I don't know why I made this... But I did... - immi - 10-23-2009

Sorry I can't understand this , Can anybody explain this whats the concept behind this ?


RE: I don't know why I made this... But I did... - Akshay* - 10-24-2009

You must improve this script.As it there are many errors.


RE: I don't know why I made this... But I did... - nevets04 - 10-24-2009

(10-24-2009, 08:11 AM)Akshay* Wrote: You must improve this script.As it there are many errors.

Errors that don't make it don't work? cause it works fine for me.