Archive for the ‘python’ Category

How do you publish a python program?

Saturday, February 18th, 2012

I noticed that if you import a python script you created into another script a compiled version of the script appears. I thought this would work but it's doesn't unless you have python installed on the PC. I need to publish a python program so that it will run whether or ...

How do you write on a new line in a text file with Python?

Thursday, February 16th, 2012

I need to write into a text file with Python but I want to make a new line in it and then write there. How can I do this?

How to develop GUI applications using Python ?

Wednesday, February 15th, 2012

Given that Python is a scripting language, is it possible to "cover" them with some sort of GUI? All the information i've read on the internet is so blurry, so i'm asking for your help Thank you

How to express variables with exponents in Python?

Wednesday, February 15th, 2012

I've recently been experimenting with Python. However, I can't figure out how to show a variable (value unknown; like "x" in Algebra) with an exponent of 2. How would I do this?

How do you reverse a string using a for loop in Python computer programming?

Sunday, February 5th, 2012

I need a code that will reverse a string or list using a for loop. I want to completely reverse the spelling of sentences and words without having to do it by hand.

Is it possible to make good desktop applications using only python?

Sunday, February 5th, 2012

Using only python. If so, give me some examples And is it a good language to know

How do you create multiple instances of an object in Python using Pygame?

Saturday, February 4th, 2012

I've made it so you can shoot a bullet...But there can only be one bullet on the screen at a time. What do I need to do to make it so you can shoot an infinite amount of bullets without having to wait until the bullet disappears?

Is Java a good second programming language to learn after Python?

Monday, January 30th, 2012

I hope to eventually switch from Java to C++, but right now I only know Python. Would Java be a good choice for a second language? Also, should I learn Java 6 or 7?

What are some things that sets Python apart from the other languages? +10 points?

Sunday, January 29th, 2012

What are some of the things you can think of off the top of your head that makes Python unique as its own language? I'm a newb here, so intuitive things may need to be explained.....

How do I get python to print a specific position within a range?

Tuesday, January 24th, 2012

The headline question does not justify what I am asking. However, what I am asking is how I get a program to print or display a a character of a certain position within a range. Like if I had n = range(1,100). Obviously I can just type "print ...

What are instructions about coding 'the game of life' using python?

Saturday, January 21st, 2012

i need help coding spmething called 'the game of life.' i do not mean the milton-bradly thing. i am not that experienced with python so detailed help about coding is required. i currently have version 2.7 and 3.2.

How to run a python program on a computer without python on it?

Thursday, January 19th, 2012

How to run a python pr.ogram on a computer without python on it? Do I have to convert it to somthing or is there some other way

How to Validate a HTML Form using Python Scripts?

Monday, January 9th, 2012

Suppose that i have a HTML form contain two text fields which are supposed to accept only numeric values. Is there any possibility of doing this using python script. I know how to do this in Javascript. But my aim is something which i cannot do with javascript, but with ...

In Python. Prompt the user for an input integer and then print the next 10 numbers?

Sunday, January 1st, 2012

The code should check that the inputs are of the correct type/value (e.g. if the spec says positive integer, you need to check that the user entered a number which is both > 0 and an integer) and print an error message if any of them are not. Note that is ...

introduction to learning computer science: python or java. I want to learn intro to java so i can learn compsi?

Saturday, December 31st, 2011

Hello everyone, I am interested in learning computer science and wanted to know how to start. I've seen some tutorials online, specifically from Khanacademy and was wondering how to start. Do i have to download python, or java or are they two totally different things. If you guys have other ...

Is it possible to save data in python?

Thursday, December 29th, 2011

Would it possible to save data in a python program. What I mean is , would it be possible for python to remember a users input. Eg. The user opens a program and is asked their name. They quit the program. Next time the user opens the program is there a ...

How to do I do calculations on python with the modulus(%)?

Tuesday, December 27th, 2011

I am a beginner in python and I am taking a course. The professor will ask questions that require the use of modulus. For example: A=(10/3)%4+1 The answer is A=4 I do not ...

What is the fastest way to learn python?

Sunday, December 25th, 2011

I would like to learn to work with the newest version of Python. I already learnt some things about it a few months ago but I've already forgotten most of it.. I prefer a fast way. Books/website/video/.. are all good. Thanks in advance!

Is it possible to program little games in the Python programming language?

Saturday, December 24th, 2011

...Like can I make a little 3rd-person shooter type of game with Python?

How can a person who can program well in C as well as Python earn some genuine cash totally online?

Thursday, December 22nd, 2011

Hi, How can a person, from anywhere in the world, who can program well in C as well as Python earn some genuine cash totally online?