Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Creating a persistent list/database
Post: Creating a persistent list/database

I'm trying to create a program that saves info that is entered in by the user. How would I create a python program that saves information entered in by a user so that next time someone runs the progra...
Trinx General Coding Help 1 2,223 Feb-27-2019, 06:17 PM
    Thread: Pizza Ordering Program
Post: RE: Pizza Ordering Program

That makes sense now, thanks. I'll edit my code with your suggestions and post it when I'm done. **smile**
Trinx Code sharing 5 24,589 Jan-23-2019, 04:25 PM
    Thread: What is the best IDE
Post: RE: What is the best IDE

I downloaded KDevelop, VSCode and vim (I already have geany). I'm going to try those and see which one I prefer, thanks for the suggestions (Once I've tried them, I'll post my favorite on here).
Trinx News and Discussions 35 13,538 Jan-22-2019, 03:30 PM
    Thread: Pizza Ordering Program
Post: RE: Pizza Ordering Program

(Jan-18-2019, 08:10 AM)perfringo Wrote: Some other observations: - your prices (pricem) and printout of prices (functions ptopping1, ptopping2) are not related. This means that any changes in pricin...
Trinx Code sharing 5 24,589 Jan-22-2019, 03:25 PM
    Thread: What is the best IDE
Post: RE: What is the best IDE

What about geany? I've used it for HTML and JavaScript before and it worked great. I'm not sure if it has a compiler for python though.
Trinx News and Discussions 35 13,538 Jan-22-2019, 02:57 PM
    Thread: What is the best IDE
Post: RE: What is the best IDE

Thanks for your suggestions guys. How do I edit the poll?
Trinx News and Discussions 35 13,538 Jan-17-2019, 06:47 PM
    Thread: What is the best IDE
Post: What is the best IDE

What IDE is the best one to use and why?
Trinx News and Discussions 35 13,538 Jan-16-2019, 11:26 PM
    Thread: Pizza Ordering Program
Post: Pizza Ordering Program

I finally finished this program today! Tell me what you think of it and how I could make it better. Thanks! """ Scripted by Trinx """ #Freddie's Pizza Ordering System pricem = {'Sausage': 0.65, 'Pe...
Trinx Code sharing 5 24,589 Jan-16-2019, 11:14 PM
    Thread: Rounding/Truncating Numbers
Post: RE: Rounding/Truncating Numbers

(Jan-16-2019, 10:24 PM)Larz60+ Wrote: use: print('Your total is: $ {:4.6f}'.format(total))the .6 tells format to use 6 decimal places to right the 4, 4 on left 'f' = float (Jan-16-2019, 10:39 PM)sn...
Trinx General Coding Help 3 2,739 Jan-16-2019, 10:54 PM
    Thread: Rounding/Truncating Numbers
Post: Rounding/Truncating Numbers

How do I format a variable to a standard money format? This is what I am currently doing: total = 214.5467 print('Your total is: $' + str(total)[0:4])Problem is, it only puts out 3 digits, meaning mo...
Trinx General Coding Help 3 2,739 Jan-16-2019, 09:20 PM
    Thread: t_games, Take Two
Post: RE: t_games, Take Two

All that and it works **confused** Thanks for helping me through that, I'll try them out tonight (hopefully). I don't know when I will be able to get on again after today. I'll look into other python...
Trinx Game Development 16 7,842 Jan-16-2019, 06:15 PM
    Thread: Pyinstaller failing
Post: RE: Pyinstaller failing

What version of python are you using?
Trinx General Coding Help 2 4,020 Jan-16-2019, 05:49 PM
    Thread: t_games, Take Two
Post: RE: t_games, Take Two

(Jan-16-2019, 03:46 AM)ichabod801 Wrote: Sorry, I didn't see your post in the unreads. It works for me in 3.6 and 2.7. I'm using Anaconda for Python, and if I start IDLE from the folder containing t...
Trinx Game Development 16 7,842 Jan-16-2019, 05:40 PM
    Thread: A List of Free Python Resources
Post: RE: A List of Free Python Resources

I found a free pdf downloadable version of "Python Crash Course". Here's the link: https://www.programmer-books.com/python-...ourse-pdf/ This is a great book to learn python from.
Trinx Tutorials 12 44,512 Jan-15-2019, 03:39 AM
    Thread: Def Command
Post: RE: Def Command

(Jan-15-2019, 02:56 AM)ichabod801 Wrote: Def is technically a statement, not a command. And you need to indent your code under the def statement (and under the if statement: def greeting(): name = ...
Trinx General Coding Help 3 2,418 Jan-15-2019, 03:33 AM
    Thread: Def Command
Post: Def Command

I have a couple questions about the command "def". Once you define something, say "greeting", and you write your script in it: def greeting(): name = input('What's your name?') print('Hi,', name.titl...
Trinx General Coding Help 3 2,418 Jan-15-2019, 02:41 AM
    Thread: Chess on Tkinter Snapping Issues
Post: RE: Chess on Tkinter Snapping Issues

Quote:you would do something like this for num in range(1,9): multiplier = 75 canvases.append(canvas.create_line(multiplier*num, 0, multiplier*num, 600)) Cool, I'll try that, thanks!
Trinx Game Development 6 4,743 Jan-15-2019, 02:07 AM
    Thread: t_games, Take Two
Post: RE: t_games, Take Two

(Jan-13-2019, 09:18 PM)ichabod801 Wrote: How are you running it, and what version are you using? Python 3.6.4. I'm just running it on the shell of IDLE. I downloaded the file you said, t_games-0.36....
Trinx Game Development 16 7,842 Jan-15-2019, 02:03 AM
    Thread: t_games, Take Two
Post: RE: t_games, Take Two

Hmmm, for some reason the games aren't working for me. Here's what I'm getting: Error:Traceback (most recent call last): File "C:\Users\Thorin\Desktop\t_games-0.36.0a4\player.py", line 32, in <m...
Trinx Game Development 16 7,842 Jan-13-2019, 08:09 PM
    Thread: Chess on Tkinter Snapping Issues
Post: RE: Chess on Tkinter Snapping Issues

(Jan-12-2019, 11:15 PM)metulburr Wrote: surprisingly we dont have tutorial on just simple for loops. But yes for num in range(1,9):num each loop will be from 1-8 this can reduce you canvas.create_te...
Trinx Game Development 6 4,743 Jan-13-2019, 08:04 PM

User Panel Messages

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