Posts
 
Reputation
Joined
Last Seen
Ranked #462
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
96% Quality Score
Upvotes Received
30
Posts with Upvotes
25
Upvoting Members
17
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
6 Commented Posts
2 Endorsements
Ranked #621
Ranked #818
~86.4K People Reached
Favorite Forums
Member Avatar for LastMitch

A Separation (or Separation of Nader and Simin) by Asghar Farhady. The Dreamers. Forest Gump.

Member Avatar for LoanHensley
6
6K
Member Avatar for vegaseat

Importing modules inside anonymous functions: t = lambda: __import__('time').localtime() print('Date: %s/%s/%s'%(t().tm_mday, t().tm_mon, t().tm_year))

Member Avatar for vegaseat
23
34K
Member Avatar for ItsAdZy

PyScripter is the best one in my opinion. it supports many versions of Python code.google.com/p/pyscripter/

Member Avatar for RogueHaxor
0
1K
Member Avatar for nouth

> for example I don't know what this is called » [('cat', 'meow'), ('dog', 'ruff')] It's called a list of tuples > so I can now remove the square brackets but I want to make it liek this ↴ catmeow dogrugg You can do something like this: your_list = [('cat', …

Member Avatar for vegaseat
0
245
Member Avatar for Helper guy

off topic but wise ;-) Where shall I begin, please your majesty?" he asked. "Begin at the beginning", the king said, gravely, "and go on till you come to the end: then stop ." Alice in wonderland.

Member Avatar for M.S.
0
191
Member Avatar for mkweska

def main(): with open(raw_input("Enter file name: ", "r")) as fin: for num, line in enumerate(fin.readlines()): print("%d: %s"%(num+1, line)) it is without error checking, u you can add exception catching to it.

Member Avatar for snippsat
0
473
Member Avatar for mkweska

and... the module profession.py returns nothing! so your player will not have any of those properties.

Member Avatar for Schol-R-LEA
0
218
Member Avatar for M.S.

Assuming that every person has a National ID number, I am trying to check if the Entered number is a valid ID number, under these conditions: 1. ID number must be of 10 digits length. 2. If ID length is greater than/equal to 8 and less than 10 digits, add …

Member Avatar for M.S.
0
2K
Member Avatar for Lardmeister

I'm using py4a on android and it helps me script things for my android phone. stuff like searching messages for desired words, text encryption and sending via sms reboot options for root devises bluetooth control with gui and some more, I scripted already.

Member Avatar for M.S.
0
217
Member Avatar for ZZucker
Member Avatar for elrond

just write down some code and then try to enhance it step by step. then come back here and ask your questions. what is yor algorithm or logic?

Member Avatar for Lardmeister
-1
124
Member Avatar for Vusumuzi

first no need to use print when assigning a user input to a variable. secondfunction arguments are pre-requisit for function. so get those two user input vars out of the function.

Member Avatar for Vusumuzi
0
153
Member Avatar for aaron.jensen.923

just something to start with: data_list = [line.split() for line in myFile.readlines()]

Member Avatar for HiHe
0
307
Member Avatar for crazyjdog

python uses (* asterix) for multiplication. in line 54 it assumes the s(s-side1) as a function call not a multiplication. it should look like s*(s-side1)*(s-side2)...

Member Avatar for JasonHippy
0
449
Member Avatar for ArtemKrass

I dont know wx and dont know how to fill searchbox :D but for searching a word or words u can add queries to google address: www.google.com/search?q=SEARCH+WORDS query = 'what is Python' search_google = 'www.google.com/search?q=%s'%query

Member Avatar for ArtemKrass
0
132
Member Avatar for Lynick

you have to assign thevariable before using it. in your case, replace the line 1 and 2 with each other. in python 2.x use raw_input instead of input and then convert it to integer or float.

Member Avatar for M.S.
0
100
Member Avatar for hotblink

what structure has the data in the text file? show some of its data. btw, range() doesnt work with float.

Member Avatar for hughesadam_87
0
385
Member Avatar for Sarah2012

define get_score(with a string argument): length = len(string) score = 0 if length < 3: score = 0 elif score > 6: score = length multiplied by 1 elif other condition: apply other rules to score ... return score

Member Avatar for HiHe
0
120
Member Avatar for apayn

instead of confusing while MainLoop == 1 you can use: while True: '''do stuff''' break

Member Avatar for M.S.
0
200
Member Avatar for favoredanteater

EDIT. PLEASE REMOVE THIS POST. my system got problem when tried to post :D long delay in refresh,

Member Avatar for Schol-R-LEA
0
207
Member Avatar for Delnith
Member Avatar for Jacklittle01

look at the full traceback record. and it's better to post the full traceback here...

Member Avatar for TrustyTony
0
188
Member Avatar for nUmbdA

you should return shipping_rate in the second function: def shippingRate ( poundage , classification ): return poundage * classification

Member Avatar for nUmbdA
0
3K
Member Avatar for emeka.l.iwuagwu

what is your targeted devise? if sysmbian: import inbox box = inbox.Inbox(inbox.EInbox) for sms_ID in box.sms_messages(): print box.content(sms_ID)

Member Avatar for M.S.
0
378
Member Avatar for BigPaw

if you mean to write and run code, there is no support for python 3.3. SL4A only supports 2.6.2 and 3.0.1.

Member Avatar for BigPaw
0
127
Member Avatar for birch18

post your code and traceback if you want to attract forum's experts attention. otherwise you wont get any help ;)

Member Avatar for M.S.
0
51
Member Avatar for giancan

simplest way: url= 'http://maps.google.com/maps?q=%s+%s' % (latitude,longitude)

Member Avatar for M.S.
0
217
Member Avatar for M.S.

This is me with another project for beginners :) The Project as stated by ZZucker about 2 months ago: "Given the length of three sides, write a function that checks if it is possible to create a triangle." I could solve it with an annonymus function like this: is_triangle = …

Member Avatar for M.S.
0
250
Member Avatar for sean.kallungal
Member Avatar for M.S.
0
670
Member Avatar for M.S.

This is and answer to one of the Vegaseat's recent projects for beginners. I share my solution here because -as a begginer and do learn python as a hobby- I need your feedback. So please tell me am I doing it the right way? Thanks in advance for comments from …

Member Avatar for M.S.
0
297