answersLogoWhite

0

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.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How to use pycharm community edition for python programming?

Creating and Running a Python File in PyCharm Step 1: Create a New Project. On the Welcome screen, select New Project. ... Step 2: Create a New Python Script. If you're greeted by the main.py file when the project opens, you're ready to start coding in Python. ... Step 3: Write Some Python Code. ... Step 4: Run Your Python Code.


Which one of the following was one of guido van rossum's goals for python?

One of Guido van Rossum's goals for Python was to create a language that was easy to read and write, emphasizing code readability and simplicity.


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


What is the significance of context-free grammar in the Python programming language?

Context-free grammar in Python programming language is significant because it defines the syntax rules for writing code. It helps the interpreter understand and parse the code correctly, ensuring that it follows the language's rules. This allows programmers to write code that is structured and readable, making it easier to debug and maintain.


Is python 2.2 a antivirus software?

Python is a programming language, it is used to make computer programs. so you could write an antivirus using python.


Can you delete code on python?

you can uninstall it just like any other program.


Write converter currency code in python language?

If you're looking for a currency converter or information on how to use them,the following is the best resource that i have found online: http://www.fxconverter.org.


What is the python code for drawing a circle?

circle(radius)


What years did Douglas Adams write for Monty Python?

i dont think he was actually a hired writer for monty python. i believe he just helped write with them. check wikipedia.


What is the purpose of print strings in python?

It means that python will print(or write out) a value you input.


What did Ruskin Bond write in his conceited python?

he was nature lover


What is pep 8?

PEP 8, or Python Enhancement Proposal 8, is a style guide for Python code that provides conventions for writing clean and readable code. It covers various aspects of coding style, including naming conventions, code layout, indentation, and comments. Adhering to PEP 8 helps improve code consistency and maintainability, making it easier for developers to collaborate on Python projects. It is widely accepted as the standard style guide in the Python community.