Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Project: Google map
Post: RE: Project: Google map
I tested just the address itself and I used Nashville Tennessee as my test. When I put in just Nashville, it gives me my location. However when I put in Nashville TN, it showed to map at Nashville Ten... |
|
Zombie_Programming |
Homework |
5 |
4,210 |
Jul-31-2018, 06:39 AM |
|
|
Thread: A little unexpected output from a while loop
Post: RE: A little unexpected output from a while loop
First off, when you initialize prompt, you set it to whatever the user enters. Then you add to the user's input prompt += "]nEnter 'quit' to end the program". This makes your user input not what you i... |
|
Zombie_Programming |
General Coding Help |
3 |
3,156 |
Jul-16-2018, 01:56 AM |
|
|
Thread: Criticism on one of my first completed programs in Python
Post: RE: Criticism on one of my first completed program...
(Jul-12-2018, 02:29 AM)DeaD_EyE Wrote: What happens if you add $0.1 and $0.2?
If you operate with money, then use integer in the smallest money unit (cent), or use decimal.Decimal.I Honestly... |
|
Zombie_Programming |
Code sharing |
5 |
4,024 |
Jul-12-2018, 07:11 AM |
|
|
Thread: Criticism on one of my first completed programs in Python
Post: RE: Criticism on one of my first completed program...
UPDATE ON PROGRAM
I wanted to post an update on my program, it's come a long way and I have learned a lot. I spent today and yesterday working on improving the code and implementing some changes and ... |
|
Zombie_Programming |
Code sharing |
5 |
4,024 |
Jul-12-2018, 01:45 AM |
|
|
Thread: Function producing no result
Post: RE: Function producing no result
You put continue, which is not needed at all. Not to mention that the code you want to loop is not even in the loop. Get rid of the continue statement and indent the code you want under the while loop... |
|
Zombie_Programming |
Homework |
2 |
2,740 |
Jul-10-2018, 12:44 AM |
|
|
Thread: Making a Easy Password/code system
Post: RE: Making a Easy Password/code system
I'm confused. You don't have any code posted where you call def passcode(enter). |
|
Zombie_Programming |
General Coding Help |
4 |
3,889 |
Jul-09-2018, 01:36 AM |
|
|
Thread: Clearing IDLE of text and homing
Post: RE: Clearing IDLE of text and homing
You can import the os module and clear the screen that way. However, the IDLE screen won't clear the way you want it too. You would have to learn how to run python programs in the Comand Prompt(Assumi... |
|
Zombie_Programming |
General Coding Help |
1 |
2,718 |
Jul-07-2018, 04:31 AM |
|
|
Thread: code problems
Post: RE: code problems
(Jul-06-2018, 01:39 AM)lokchi2017 Wrote: print("okay") like python /python(with []) is this a python tagYes, when you put code into your post, wrap it in python tags like you did there. |
|
Zombie_Programming |
General Coding Help |
3 |
2,741 |
Jul-06-2018, 01:58 AM |
|
|
Thread: code problems
Post: RE: code problems
You get invalid syntax because of your if statements. When comparing two values you should use == so your code should look like this:
import random
question1 = input("Question!")
answer1 = input("An... |
|
Zombie_Programming |
General Coding Help |
3 |
2,741 |
Jul-06-2018, 12:53 AM |
|
|
Thread: Python code help
Post: RE: Python code help
It's best if you nest the if statements like this,
age = int(input("Enter your age"))
if age >= 113:
print("Invalid age.")
if age >= 6 and age <= 18:
print("Remain in school")
if ... |
|
Zombie_Programming |
Homework |
2 |
5,742 |
Jul-05-2018, 10:04 PM |
|
|
Thread: Criticism on one of my first completed programs in Python
Post: RE: Criticism on one of my first completed program...
Thank you for the feedback. It has opened my eyes to a lot that I can improve. It's also opened my eyes to the fact that my Comp Sci 150 class didn't teach me a lot. However, I'm going to spend the ne... |
|
Zombie_Programming |
Code sharing |
5 |
4,024 |
Jul-05-2018, 08:40 PM |
|
|
Thread: Criticism on one of my first completed programs in Python
Post: Criticism on one of my first completed programs in...
This program is supposed to mimic, in a way, a banking program. Essentially it allows the user to login using a 12-digit pre-generated account number and a user-created PIN. If the user doesn't have a... |
|
Zombie_Programming |
Code sharing |
5 |
4,024 |
Jul-05-2018, 04:48 PM |
|
|
Thread: Error?
Post: RE: Error?
(Jul-03-2018, 06:01 AM)buran Wrote: We were told to use eval() since int() and float() do not iterate.I'm not sure what you mean by int() and float() do not iterate
I miss spoke by saying iterate, ... |
|
Zombie_Programming |
Homework |
9 |
4,983 |
Jul-03-2018, 06:18 AM |
|
|
Thread: Error?
Post: RE: Error?
(Jul-03-2018, 04:14 AM)buran Wrote: you say to understand the consequences, yet advise/encourage a newbie asking in Homework section and clearly doesn't understand the risks to use it... Please, don... |
|
Zombie_Programming |
Homework |
9 |
4,983 |
Jul-03-2018, 05:43 AM |
|
|
Thread: Error?
Post: RE: Error?
(Jul-02-2018, 11:43 AM)gruntfutuk Wrote: Using eval() on user input is a really bad thing. A user could enter code, for example, to delete all the files on your drive!
I understand the consequences ... |
|
Zombie_Programming |
Homework |
9 |
4,983 |
Jul-03-2018, 02:49 AM |
|
|
Thread: Error?
Post: RE: Error?
A way to solve this is to get rid of the ipt.split(" ") and change your int(input(...)) to eval(input(...)) like I do here,
import math
def pythag( a, b, c1):
if(c1 == 'c') :
c = math... |
|
Zombie_Programming |
Homework |
9 |
4,983 |
Jul-02-2018, 03:51 AM |
|
|
Thread: not able to complete a project
Post: RE: not able to complete a project
(Jun-29-2018, 07:11 PM)volcano63 Wrote: Why are you using random and not binary search? You can do without the else clause - and print the message after the loop
I figured I'd set it up for him so t... |
|
Zombie_Programming |
Homework |
11 |
5,041 |
Jun-29-2018, 10:46 PM |
|
|
Thread: not able to complete a project
Post: RE: not able to complete a project
Try to read through your code and analyze what is going on. You declare a variable called "num" that gets a user's input for a number 1-50. You import the random library and declare another variable t... |
|
Zombie_Programming |
Homework |
11 |
5,041 |
Jun-29-2018, 04:00 PM |
|
|
Thread: My First Python Script. Feedback Sought.
Post: RE: My First Python Script. Feedback Sought.
For it being one of your first Python scripts, it does look solid. I just have a knack for documentation and making code look "Pretty." Hope this helps in the long run :) |
|
Zombie_Programming |
Code sharing |
5 |
3,849 |
Jun-29-2018, 03:49 PM |
|
|
Thread: My First Python Script. Feedback Sought.
Post: RE: My First Python Script. Feedback Sought.
I didn't read the code all the way through, however, I did notice one thing. You lack documentation. One thing you should practice is documentation(ex. a comment above one of your functions explaining... |
|
Zombie_Programming |
Code sharing |
5 |
3,849 |
Jun-28-2018, 11:06 PM |