Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Help with array smallest biggest number
Post: RE: Help with array smallest biggest number
(Nov-30-2017, 12:44 AM)thanikos Wrote: Hello
I need some help to: User inserts 10 numbers that goes to an array, and then the program prints the smallest number, the biggest number and the average ... |
|
Prrz |
Homework |
4 |
3,314 |
Nov-30-2017, 02:11 AM |
|
|
Thread: GTIN code validation program not working!
Post: RE: GTIN code validation program not working!
You're calling variables outside of their assignment.
Everything that is intended to be within your "find()" function's first "if:" statement should be inside of the "try:" statement as well, curren... |
|
Prrz |
Homework |
1 |
2,803 |
Nov-29-2017, 11:25 PM |
|
|
Thread: How to make a dynamic variable based on input
Post: RE: How to make a dynamic variable based on input
Hello there, welcome to Python! It would be quite helpful if you used the python BBCode so we can better read your code, which includes all your indentation.
With that being said, this is how I woul... |
|
Prrz |
Homework |
3 |
3,792 |
Nov-29-2017, 11:00 PM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
(Nov-24-2017, 11:41 PM)Austin11 Wrote: I changed up my code to take away the extra while loop and include it in the first while statement when the user puts in a negative it works great. However, wh... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-28-2017, 11:20 PM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
The issue with validating is within your get_pints_for_drive() function. Firstly, I'd suggest using lower-case for the PINTS_DATA list, for sake of clarity. To put it simply, you'd want to check if th... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-23-2017, 08:07 PM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
For example, and for your own sake please do not copy this in its entirety, here is the code that I made to solve the very same problem. Run it, read through it. I'll look into the code you've provide... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-22-2017, 07:13 PM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
(Nov-21-2017, 05:11 PM)Austin11 Wrote: I made enhancements to my code and I have it validating every input correctly. My only thing now is that I when they input a string the code closes out nicely.... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-21-2017, 09:20 PM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
(Nov-21-2017, 04:09 AM)Austin11 Wrote: (Nov-21-2017, 03:28 AM)Prrz Wrote: Hello there! What you are looking for is the ValueError exception. I believe a good way to implement this would be as foll... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-21-2017, 04:41 AM |
|
|
Thread: User input only takes the last number
Post: RE: User input only takes the last number
(Nov-21-2017, 02:49 AM)Austin11 Wrote: Ok so I redid my code(with the help of my teacher) and now I am running into the problem with validating the user input. Everything works great if they input a... |
|
Prrz |
Homework |
16 |
8,027 |
Nov-21-2017, 03:28 AM |
|
|
Thread: Simple "Slot" Machine (Python 3)
Post: RE: Simple "Slot" Machine (Python 3)
(Nov-09-2017, 03:14 PM)heiner55 Wrote: Now you should learn tkinter for a simple GUI.
Thanks for your reply, I'm not sure I'll be tinkering with GUI just yet but I hope it will be in my future! I've... |
|
Prrz |
Code sharing |
3 |
17,771 |
Nov-21-2017, 03:03 AM |
|
|
Thread: Simple "Slot" Machine (Python 3)
Post: Simple "Slot" Machine (Python 3)
Hello Python Forum, as a learning experience I created a very basic "Slot" machine. It's far from perfect and could definitely use many upgrades, more winning options, pay tables, etc. As for this pro... |
|
Prrz |
Code sharing |
3 |
17,771 |
Nov-08-2017, 04:45 AM |
|
|
Thread: Exploring Python by Writing my First Text RPG
Post: RE: Exploring Python by Writing my First Text RPG
(Aug-16-2017, 07:30 PM)sparkz_alot Wrote: (Aug-16-2017, 05:39 PM)Prrz Wrote: The reasoning it gives is "When all the Python code on your computer is Python 3, then I’ll try to learn it.".
My guess... |
|
Prrz |
Code sharing |
6 |
8,741 |
Aug-17-2017, 08:04 PM |
|
|
Thread: Exploring Python by Writing my First Text RPG
Post: RE: Exploring Python by Writing my First Text RPG
(Aug-04-2017, 02:31 PM)sparkz_alot Wrote: At this point, since you are just beginning, I would suggest before you go any further that you switch to Python 3.x. If you are using Linux, you probably a... |
|
Prrz |
Code sharing |
6 |
8,741 |
Aug-16-2017, 05:39 PM |
|
|
Thread: Exploring Python by Writing my First Text RPG
Post: Exploring Python by Writing my First Text RPG
Hello, Python Forum I am Prrz and this is my first post here in the interesting land of Python developers.
I've decided recently to start teaching myself how to code, and naturally, I started with pyt... |
|
Prrz |
Code sharing |
6 |
8,741 |
Aug-04-2017, 01:19 AM |