Hi gys, are you looking to write a program to know the sign depends on the birth date or horoscope on python? write down following codes on python, those will make a nice program.
#This program will get the horoscope sign.
def getSign():
name = raw_input ("Enter Your Name: ")
month = raw_input("Enter Birth Month: ")
day = int(raw_input("Enter Birth Day of Month: "))
if month "y":
main()
letter = raw_input("Go again? (y/n): ")
a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910
Python is just a programming software, you don't actually need it to run your computer. You can use Python if you'd like to program something, or learn how to program.
open MS-DOS in the directory you have the python file in. type "python [INSERTNAMEOFSCRIPT]"
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.
str(3.1415)
In which computer language?
Wesley Chun has written: 'Python fundamentals' -- subject(s): Python (Computer program language) 'Core Python programming' -- subject(s): Python (Computer program language)
a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910
Python is just a programming software, you don't actually need it to run your computer. You can use Python if you'd like to program something, or learn how to program.
If you have an interest in games, and know how to program in python you should investigate pygame. Pygame is a python module which is designed to let you use python to write games with sprites and sound. For an introduction to Pygame, see chapter 17 in Al Sweigart's free ebook Invent Your Own Computer Games With Python. (see related link) The Pygame module is available for download from pygame.org.
open MS-DOS in the directory you have the python file in. type "python [INSERTNAMEOFSCRIPT]"
Python is a runtime interpreter. It usually runs on the web server.
Python is named after the comedy troupe Monty Python, not the genus of snake. The creators of Python intended it to be fun to program in, and hoped to reflect that in its name.
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.
Python is a programming language, it is used to make computer programs. so you could write an antivirus using python.
str(3.1415)
488P Is the remote to a Python car alarm, need to be more specific on the alarm you have.