answersLogoWhite

0


Best Answer

Ask on Stack Overflow. Wiki Answers is not for pasting code

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why doesn't this Python code do what it's supposed to do - see Discussion?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can you delete code on python?

you can uninstall it just like any other program.


How do you make a random number using Python?

this is the code for making a random number using python: import random >>>random.randint (1, 10) you can do whatever numbers you want.


What is jython?

Jython is a version of the Python programming language that is integrated with the Java programming language, allowing you to mix Java and Python code and run both on the Java Virtual Machine.


What happens when a function is defined in python?

A function holds code, which means you can essentially 'store' code within the function, allowing it to be 'reused' or 'called' later on.


How do you write the code by python?

it depends what type of program you wish to write. python is a very simple programing langauge therefore it doesnt have much room to play with. i mainly use it to work out simple math problems, or use it to calculate thing for games i play, Ex.) This is a program i wrote to work out the Pythagorean therom to find side "C": a = input("Enter Corner Side A\n ") b = input("Enter Corner Side B\n ") c = a*a+b*b import math print math.sqrt(c) raw_input("Press <enter> To Leave Program") input mean that's where you enter your variable, raw input is what you put at the end so it doesnt just run away (NOTE*** THIS IS A PYTHON 2.6.5 SCRIPT, IT WILL NOT WORK ON OTHER VERSIONS OF PYTHON" notice i put ("Press <enter> To Leave Program") this is what it will say before it "runs away". i suggest watching some youtube videos on how to write programs for your version of python. also try using the manual that comes with your version of python. it helps greatly.

Related questions

Can you run a python program using code Can you give me the code I need to use in order for it to work I am using codio plz help?

Assuming you only intend executing your code on your own machine and you have some version of Python installed, you can execute a Python script from within your code in the same way you can execute a Python script via the command line: python script.py infile outfile -o


Can you delete code on python?

you can uninstall it just like any other program.


What is the python code for drawing a circle?

circle(radius)


Can you do Python coding on an iPad?

Sorry, but not that I know of. Python is only available on Mac OS or Windows. You would also need a code editor which is only on a PC.


What is the Action replay code for a mist stone in Pokemon diamond?

94000130 FFF0000 this code doesnt work why doesnt it work it works for me


What is the bonus code for iron man 3?

The bonus code for Iron Man 3 is: mark 20 python. However, you also can use other codes for bonuses, such as the words "striker missile".


How do you make a random number using Python?

this is the code for making a random number using python: import random >>>random.randint (1, 10) you can do whatever numbers you want.


What is python 2.6 pywin32 212?

Python 2.6 is a release of Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability.pywin32 is a release of python 2.5 designed to run on 32-bit Windows machines.pywin32-212 is build 212 of pywin32.


What is python 2.6 pywin32-212?

Python 2.6 is a release of Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability.pywin32 is a release of python 2.5 designed to run on 32-bit Windows machines.pywin32-212 is build 212 of pywin32.


What is jython?

Jython is a version of the Python programming language that is integrated with the Java programming language, allowing you to mix Java and Python code and run both on the Java Virtual Machine.


What is the Ancient Ruins code?

your supposed to get a paper on top of the cave and the code is open


What is the enable hats code on dino run?

You are supposed to donate to pixeljam to get the code