Author Topic: Some more python Problems  (Read 3699 times)

By the way your's is complicated for a beginner to understand, mine is basically bare bones.
Idk, I've never written a line of Python in my life and it made complete sense to me.

Idk, I've never written a line of Python in my life
then why do you say it's stuffty

then why do you say it's stuffty

you don't have to be a chef to know the food's stuff

Idk, I've never written a line of Python in my life and it made complete sense to me.
His code is 100% wrong in op, he cannot do a if loop, he didn't -snip-... How's someone like him meant to understand .format and with open



Code: [Select]

choice = input("Would you like to open the file?");
    if choice == "yes":
        print ("You chose Yes!")
        import time
        time.sleep (1.5)
       #put my code here to open a file
    else:
        print ("gg")
« Last Edit: September 18, 2013, 02:41:50 AM by Starzy »

Starzy, please stop importing modules immediately as you need them.
Place something like import time at the top of the file, and only once.

Call animal control, and stay inside. Put out a trap, and see if he goes inside of it.

Call animal control, and stay inside. Put out a trap, and see if he goes inside of it.
sides

Call animal control, and stay inside. Put out a trap, and see if he goes inside of it.
too late I think OP's dead :(((

Starzy, please stop importing modules immediately as you need them.
Place something like import time at the top of the file, and only once.
Doesn't work for me, when I define things eg.
Code: [Select]
import time
def 123():
    time.sleep(1)
won't work but -
Code: [Select]
def 123():
    import time
    time.sleep(1)
will, weird I know.


Doesn't work for me, when I define things eg.
Code: [Select]
import time
def 123():
    time.sleep(1)
won't work but -
Code: [Select]
def 123():
    import time
    time.sleep(1)
will, weird I know.

What Python interpreter do you use? I've never seen this happen with neither CPython (official) nor PyPy.

What Python interpreter do you use? I've never seen this happen with neither CPython (official) nor PyPy.
I use the python 3.3, edit in IDLE and save as .py and just double click run or run using idle.

I thought you mean the other kind of python