Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Do you require imports used in other files?
Post: Do you require imports used in other files?

Here is a snippet of code from two files: # FileA.py import time def test(): time.sleep(1) print("Hello")# FileB.py import FileA test()Will this print an error because FileA uses time, but Fil...
Panda General Coding Help 1 2,527 Jul-14-2018, 02:12 PM
    Thread: Stopwatch
Post: Stopwatch

How do i create a stopwatch that counts up until a certain value is entered inside of an input?
Panda General Coding Help 1 2,229 Jul-11-2018, 01:19 PM
    Thread: EOFError: Ran Out Of Input in Pickle
Post: RE: EOFError: Ran Out Of Input in Pickle

ok but wut I fixed it myself. I just had to dump it, then remove the code
Panda General Coding Help 2 48,693 Jul-05-2018, 01:55 PM
    Thread: EOFError: Ran Out Of Input in Pickle
Post: EOFError: Ran Out Of Input in Pickle

Here is a snippet of code that is causing an error import pickle amount_of_accounts = pickle.load( open( "savek.p", "rb" ) )This gives the error: Error:Traceback (most recent call last): File "Pytho...
Panda General Coding Help 2 48,693 Jul-04-2018, 02:04 PM
    Thread: Saving
Post: RE: Saving

(Jun-24-2018, 01:02 AM)Grok_It Wrote: Try this example Thank you. This worked
Panda General Coding Help 15 8,432 Jun-24-2018, 01:18 PM
    Thread: Saving
Post: RE: Saving

Now it inputs Output:€]q ^aBut only in Windows 1252 encoding
Panda General Coding Help 15 8,432 Jun-24-2018, 12:24 AM
    Thread: [SOLVED] Changing a string to an int
Post: RE: Changing a string to an int

(Jun-23-2018, 07:04 PM)gontajones Wrote: Does the user input the whole expression or just the numbers? For the whole expression you can try this: py-expression-eval Just the numbers. I solved it m...
Panda General Coding Help 3 3,221 Jun-23-2018, 07:19 PM
    Thread: [SOLVED] Changing a string to an int
Post: [SOLVED] Changing a string to an int

I'm making a simple calculator, but when you input 1 + 1, the program returns "11". I don't get any errors, but is there a way to change the string that you type, into an int that can be added in an e...
Panda General Coding Help 3 3,221 Jun-23-2018, 06:59 PM
    Thread: Artificial Intelligence?
Post: RE: Artificial Intelligence?

Nothing, actually
Panda General Coding Help 3 2,491 Jun-20-2018, 10:57 PM
    Thread: Artificial Intelligence?
Post: Artificial Intelligence?

Can someone help me by creating an artificial intelligence? It's supposed to take answers from questions asked, then combine the answers (unknown, yes, no, sometimes) to get a noun. Almost like 20Q. I...
Panda General Coding Help 3 2,491 Jun-20-2018, 07:32 PM
    Thread: Feedback on a test adventure?
Post: Feedback on a test adventure?

This is a text-adventure style game based on The Stanley Parable. It's not done yet, but i was hoping to get some feedback before i finish. # I want to add console later so import sys is here import s...
Panda Code sharing 2 3,023 Jun-15-2018, 04:26 PM
    Thread: Mobile
Post: Mobile

Can there be a mobile version of this website? I'm on my phone and everything is extremely small. The website is scaling everything on to a 4 inch screen.
Panda Board 6 150,316 Jun-10-2018, 04:26 PM
    Thread: How to create a log file
Post: RE: How to create a log file

I made a mistake. You must import "datetime" for the handler to be correct
Panda Tutorial Requests and Submissions 1 8,199 Jun-09-2018, 02:39 PM
    Thread: 3 Things (wew)
Post: 3 Things (wew)

I created an "Are you smarter than a fifth grader" program, and wanted to upload it here. I looked into the programming ideas and challenges thread and found out i already created two years ago. These...
Panda Code sharing 0 1,983 Jun-09-2018, 02:08 PM
    Thread: [SOLVED] Print an int with a string
Post: [SOLVED] Print an int with a string

Is there a way to print an int (score) inside of a string without getting an error? score = 0 score = score + 1 print("Your score was ") print(score) print(" out of 5")That is the code i currently hav...
Panda General Coding Help 2 3,308 Jun-09-2018, 12:16 PM
    Thread: Saving
Post: RE: Saving

(Jun-08-2018, 02:05 PM)buran Wrote: you are kidding, right? https://docs.python.org/3/tutorial/input...le-objects and https://docs.python.org/3/tutorial/input...-with-json if you want to use json (b...
Panda General Coding Help 15 8,432 Jun-08-2018, 02:43 PM
    Thread: Saving
Post: RE: Saving

(Jun-08-2018, 01:12 PM)buran Wrote: Did you check the documentation? https://docs.python.org/3/tutorial/input...ting-files or if you decide to use a sqlite DB https://docs.python.org/3/library/sqlit...
Panda General Coding Help 15 8,432 Jun-08-2018, 02:00 PM
    Thread: Saving
Post: RE: Saving

(Jun-08-2018, 12:57 PM)buran Wrote: You can save/update whatever information you want in a separate file or in a database every time when the program runs.but how I know how to output to a file usin...
Panda General Coding Help 15 8,432 Jun-08-2018, 01:09 PM
    Thread: Saving
Post: RE: Saving

(Jun-08-2018, 12:37 PM)buran Wrote: You can save your code as py file. Is that what you ask? check https://python-forum.io/Thread-Basic-How...ython-codeI don't think so. I would like a way to see ho...
Panda General Coding Help 15 8,432 Jun-08-2018, 12:54 PM
    Thread: Saving
Post: RE: Saving

(Jun-07-2018, 07:00 PM)buran Wrote: (Jun-07-2018, 06:36 PM)Panda Wrote: Is there a way to create a saving mechanism inside a python file? What exactly do you mean by this? Please, elaborateAs in a...
Panda General Coding Help 15 8,432 Jun-08-2018, 12:23 PM

User Panel Messages

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