Python
Python is a general-purpose, very high-level programming language. Its design philosophy emphasizes programmer productivity and code readability.
Application
Any
Platform
Any
License
Any
Hi there,
I got this txt file with following contents:
My Glossary
stuff
The above text is saved in test.txt file.
I need to write a python script that would load the above file as...
Hello all.
I am developing application in python on Windows CE which needs connection to the internet (via GPRS/EDGE). When I turn on the device, the internet connection is not active. It becomes...
The highest index of a list is len(list) - 1 (b/c it's zero-indexed).
Say my list looks like this:
a =
Then,
len(a) == 3
However,
a == 3
a == error
In your code, after a while, it tries to...
I'm trying to write a program to encrypt and decrypt the messages.
I get help from ACII to do it.
My code works. But sometimes I get error. That's why my code get error :
list =
In this...
I wanted to do this little program that shows a list of names and give them random numbers. The user have to memorize each name-number set and must give the correct number to the name chosen randomly...
You can declare a variable with None value (It's the same as NULL in c), it means 'Nothing':
name = None
for tuples, dirs, arrays you can do this:
t = ()
d = {}
a = []
If you want to change a...
Hi everyone, this is my first post here. I've started python a few days ago and having programmed in VB for a couple years I'm fooled by this new language. There are a couple of concepts that I may...
Hello all, I am second guessing my choice of language(s) to learn at an early stage and was looking for input and advice. My original plan was to learn java first, then learn jython (which as I...
I need to pass Java POJO's as parameter to the java class I would be calling from Jython. I declared a java project and created a pojo, under the package com.pojo.util and the pojo name is User. I...
')
:
: if input=="yes":
: print "te doy "+price
: else:
: print "lo siento no puedo comprarlo hoy"
:
: def get_price(self):
: return self.price
: price=property(get_price)...
')
if input=="yes":
print "te doy "+price
else:
print "lo siento no puedo comprarlo hoy"
def get_price(self):
return self.price
price=property(get_price)...
Thanks a lot got it working
: def main():
: t_s = input('what were the t_s?')
: s_t(t_s)
: c_t(t_s)
: t_t(s_t,c_t)
: print 'your t_t ', t_t
:
:
: def s_t(value):
: return float(value)*2
:...
Hello i am a n00b with python i need help. i cannot get the code below to work
def main():
t_s = input('what were the t_s?')
s_t(t_s)
c_t(t_s)
t_t(s_t,c_t)
print 'your...
0
I suppose you could build it manually, or with a loop, if you like.
e = []
for x in range(10):
e.append([])
Hi, i am currently developing a standalone aplication in python, i am very new in this language so i don't know much of it... I need your help, i need to know a way to communicate python and AS3 so i...
I'm somewhat of a newb to Python and I don't know how to make 2D lists. Could anyone help me?
Nevermind...I figured it out. jythonc isn't very useful because it hard-codes the path to your python script into the java code. This isn't portable at all. However, I installed jython as a jar...
foo.py
$ cat foo.py
import os
print "SUCCESS"
print "ASDF"
$ java Foo
SUCCESS
ASDF
The only problem with this method is that it requires the user to have a python interpreter...