Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner question on how to use python.

Status
Not open for further replies.

ReclusiveManiac

Programmer
Apr 13, 2006
1
US
Ok, this may seem to be a stupid question, but I don't know. I am doing some tutorials for Python and it seems neat and everything, but how do you make so that you can use the program you make on a website of something? All help would be appreciated very much.
 
use it like a java applet or in place of client-side javascript? you can't as far as i know. that's not what python is best at anyway.

you can use it as a server-side language to make web applications... for more info google zope, cherrypy, turbogears, django, cheetah to name a few.

you can use it to make gui applications, google python+tk, or wxpython.

you can just use it to make console based applications too.

it has many other uses as well... as many as you can find a use for


-jeff
lost: one sig, last seen here.
 
ok... new question... is there a command that will create a random number that i can then store to a variable? i have found no tutorials that give me the answer, so now i come to you...
 
I always start here:


Going there and searching for Random will lead you to here:


[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
ok... what do i do? i just read over it a dozen times and it still wont work. my script is:

>>>k = randint(1,5)

why doesn't it work?
 
>>> import random
>>> random.randint(1,10)

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
what is the command to clear the homescreen? my guess is:

clear.home

but im probably wrong...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top