Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to make python run other file?
Post: RE: How to make python run other file?

And I use OSX.
Adrian_L General Coding Help 4 2,251 Apr-05-2021, 09:18 PM
    Thread: How to make python run other file?
Post: RE: How to make python run other file?

I am wanting to run another .py
Adrian_L General Coding Help 4 2,251 Apr-05-2021, 09:17 PM
    Thread: How to make python run other file?
Post: How to make python run other file?

How do I make python run another file from the local disk?
Adrian_L General Coding Help 4 2,251 Apr-04-2021, 08:22 PM
    Thread: How to fix the error?
Post: RE: How to fix the error?

(Apr-04-2021, 07:42 PM)bowlofred Wrote: The indentation of line 140 does not pair up with an earlier if, but instead with the while on line 44. It is possible for a while loop to have an else claus...
Adrian_L General Coding Help 2 1,755 Apr-04-2021, 07:48 PM
    Thread: How to fix the error?
Post: How to fix the error?

My current code: import time import random import os ValidBootFiles = ["XC_DOS", "shell"] for x in range(100): bootfrom = input("boot from:") if bootfrom == "XC_DOS": print("trying t...
Adrian_L General Coding Help 2 1,755 Apr-04-2021, 07:26 PM
    Thread: Boot prompt and OS
Post: RE: Boot prompt and OS

(Apr-02-2021, 01:24 AM)Larz60+ Wrote: A little explanation of what this does would be helpful. As I always do as a moderator says, I guess I will add an explanation of them. So the OS is sort of li...
Adrian_L Code sharing 2 3,805 Apr-04-2021, 06:31 PM
    Thread: How to make input come after input if certain line inserted and if not runs OtherCode
Post: RE: How to make input come after input if certain ...

Thanks!
Adrian_L General Coding Help 6 3,325 Apr-04-2021, 06:10 PM
    Thread: Boot prompt and OS
Post: Boot prompt and OS

boot prompt: import time import random import os for x in range(90): print("") while True: user = input('boot from: ') if user == 'XC_DOS': print("trying to boot from XC_DOS.bpf....
Adrian_L Code sharing 2 3,805 Apr-01-2021, 11:50 PM
    Thread: How to make input come after input if certain line inserted and if not runs OtherCode
Post: RE: How to make input come after input if certain ...

How do I add another item? So there is Adrian, how do I add another item such as mad?
Adrian_L General Coding Help 6 3,325 Apr-01-2021, 11:18 PM
    Thread: How to make print without newline but wait in between each print?
Post: RE: How to make print without newline but wait in ...

Actually I found it out. Just add another flush statement to the one above the other print statement.
Adrian_L General Coding Help 6 3,083 Apr-01-2021, 09:59 PM
    Thread: How to make print without newline but wait in between each print?
Post: RE: How to make print without newline but wait in ...

(Apr-01-2021, 02:45 AM)BashBedlam Wrote: If I understand the problem correctly, you need to flush the print buffer after the first print statement. Try this: import time print("And now for somethin...
Adrian_L General Coding Help 6 3,083 Apr-01-2021, 09:56 PM
    Thread: How to make print without newline but wait in between each print?
Post: RE: How to make print without newline but wait in ...

I don't understand.
Adrian_L General Coding Help 6 3,083 Apr-01-2021, 12:44 AM
    Thread: How to make print without newline but wait in between each print?
Post: How to make print without newline but wait in betw...

So how do I make a print without newline and have it wait in between print? My current code: print("=", end= '') time.sleep(3) print("=")
Adrian_L General Coding Help 6 3,083 Apr-01-2021, 12:00 AM
    Thread: How to make input come after input if certain line inserted and if not runs OtherCode
Post: RE: How to make input come after input if certain ...

Thanks. But I was running a blank! The code still works. Thanks anyway.
Adrian_L General Coding Help 6 3,325 Mar-31-2021, 01:35 AM
    Thread: How to make input come after input if certain line inserted and if not runs OtherCode
Post: How to make input come after input if certain line...

How can I make an input come after another input if a certain piece of text is inputed and if not it prints something else? My current code:username = input("username>") if username == "adrian": ...
Adrian_L General Coding Help 6 3,325 Mar-30-2021, 10:30 PM
    Thread: Small command shell
Post: RE: Small command shell

Thanks for the help. I will do that next time.
Adrian_L Code sharing 2 3,423 Mar-30-2021, 09:55 PM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

Hi! My name is Adrian. I really like to program. I like python as it is easy and I can make lots of things. I went from hello world to a command line in minutes. With some help, of course. I still nee...
Adrian_L Bar 431 228,787 Mar-29-2021, 11:36 PM
    Thread: Small command shell
Post: Small command shell

Hi there! Got code! Down here | import os print("mini command line v1.0.0") print("type help for a list of commands.") print("") def commandline(): commandline = input("C:\\system\\commands>")...
Adrian_L Code sharing 2 3,423 Mar-29-2021, 11:31 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020