Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: incomplete registration
Post: RE: incomplete registration

(May-12-2017, 04:57 PM)nilamo Wrote: Add it right where you need it... if any(k.lower() You're awesome nilamo! Thank you sir
Low_Ki_ General Coding Help 5 4,613 May-12-2017, 05:41 PM
    Thread: incomplete registration
Post: RE: incomplete registration

(May-12-2017, 04:00 PM)nilamo Wrote: (May-12-2017, 03:43 PM)Low_Ki_ Wrote:     for k in existing_usernames.keys():         if username[0].lower() == k.lower():             print('Username taken, p...
Low_Ki_ General Coding Help 5 4,613 May-12-2017, 04:12 PM
    Thread: Search and Sort Shapefiles
Post: RE: Search and Sort Shapefiles

(May-12-2017, 03:39 PM)babakkasraie Wrote: Hello  How can I search my shapefiles using python codes to find all shapefiles that start with for instance "landuse" and show the results in a message bo...
Low_Ki_ General Coding Help 5 4,357 May-12-2017, 03:45 PM
    Thread: incomplete registration
Post: RE: incomplete registration

Fixed some repetitive stuff... IE: def check_new_old(username, existing_usernames):     new_username = username     old_usernames = existing_usernames           for k in old_usernames.keys():        ...
Low_Ki_ General Coding Help 5 4,613 May-12-2017, 03:43 PM
    Thread: incomplete registration
Post: incomplete registration

I know you guys have seen me post questions on registration programs... This is, I have not completed one that I actually like. It will be the start of creating a website / video game / anything I dec...
Low_Ki_ General Coding Help 5 4,613 May-12-2017, 12:08 AM
    Thread: Fun games to help with
Post: RE: Fun games to help with

(May-08-2017, 01:21 AM)Joseph_f2 Wrote: Sounds like good fun. Maybe consider adding helpful tutorials and references to things like PyGame to your post too. I don't really have the time with exams, ...
Low_Ki_ Game Development 2 4,115 May-10-2017, 01:23 AM
    Thread: fun with hangman!
Post: RE: fun with hangman!

(Apr-28-2017, 07:14 AM)Turry Wrote: https://github.com/Turry99/Python-script...ngedman.py I've done one similar a bit ago. :) Nice!
Low_Ki_ Game Development 7 6,920 May-03-2017, 06:10 PM
    Thread: General Python code for Newbie
Post: RE: General Python code for Newbie

(Apr-26-2017, 05:34 AM)Ramakrishna Wrote: My question here: Hi all, i am new to the python scripting language. I have a requirement that to compare the two excel files.  Requirement is: Many excel f...
Low_Ki_ Web Scraping & Web Development 22 206,089 Apr-26-2017, 06:11 AM
    Thread: .py to exe or to executable file for linux
Post: RE: .py to exe or to executable file for linux

(Apr-23-2017, 03:52 AM)wavic Wrote: To make an .exe file you need a Windows box. Linux. On top of the script you have to put this line: #!/usr/bin/env python2. Or #!/usr/bin/env python3 for Python ...
Low_Ki_ General Coding Help 4 9,890 Apr-26-2017, 05:59 AM
    Thread: List logic
Post: RE: List logic

(Apr-23-2017, 04:21 AM)wavic Wrote: for chars in list(zip(*grid[::-1])):     print(''.join(chars))Output:..OO.OO.. .OOOOOOO. .OOOOOOO. ..OOOOO.. ...OOO... ....O....I was lazy and found how to rotate...
Low_Ki_ Data Science 12 8,146 Apr-23-2017, 04:31 AM
    Thread: List logic
Post: RE: List logic

so here is another one... how do I get the \ in invalidChars list without it showing up as double \\ def getUserInfo():     while True:         print('Enter a valid username: ')         username = i...
Low_Ki_ Data Science 12 8,146 Apr-23-2017, 02:29 AM
    Thread: .py to exe or to executable file for linux
Post: RE: .py to exe or to executable file for linux

(Apr-23-2017, 12:10 AM)Ofnuts Wrote: For Linux you just make sure the first line of the file contains #!/usr/bin/env python2 or #!/usr/bin/env python3 and that the file has the executable bit set (y...
Low_Ki_ General Coding Help 4 9,890 Apr-23-2017, 12:25 AM
    Thread: .py to exe or to executable file for linux
Post: .py to exe or to executable file for linux

How would you convert a .py file to a .exe for distribution to a windows machine and also how would I make a version of an executable file on linux that could just be double clicked on or ran in the t...
Low_Ki_ General Coding Help 4 9,890 Apr-22-2017, 11:59 PM
    Thread: List logic
Post: RE: List logic

(Apr-22-2017, 09:24 PM)ichabod801 Wrote: You want your return statement in addToInventory to be at the same indentation level as the for loop. That way, it won't execute until the for loop is comple...
Low_Ki_ Data Science 12 8,146 Apr-22-2017, 11:46 PM
    Thread: List logic
Post: RE: List logic

(Apr-22-2017, 05:44 PM)ichabod801 Wrote: for item in dragonLoot:    stuff[item] = stuff.get(item, 0) + 1This works better with a defaultdict, then you can just add one to the key directly, without ...
Low_Ki_ Data Science 12 8,146 Apr-22-2017, 06:53 PM
    Thread: List logic
Post: RE: List logic

(Apr-22-2017, 10:50 AM)ichabod801 Wrote: I'm not sure what you need, you've got it all right there. Your paragraph starting with "I know it's going to..." is exactly what I would tell you to do. Th...
Low_Ki_ Data Science 12 8,146 Apr-22-2017, 04:56 PM
    Thread: List logic
Post: RE: List logic

If anyone knows where I can go to practice list, and dictionary logic for newbies please refer me towards that direction?
Low_Ki_ Data Science 12 8,146 Apr-22-2017, 03:08 AM
    Thread: List logic
Post: List logic

I am practicing with lists and can't figure out this logic... Could someone show me the way to the light :P. Here is what I want to do: Copy the grid value and write code that uses it to print the im...
Low_Ki_ Data Science 12 8,146 Apr-22-2017, 02:03 AM
    Thread: cannot find file
Post: RE: cannot find file

(Apr-20-2017, 03:06 AM)Larz60+ Wrote: Curious - did you know you were answering a post from January? bahaha i did not
Low_Ki_ General Coding Help 6 6,011 Apr-20-2017, 10:00 PM
    Thread: 'module' object is not callable
Post: RE: Need Help

(Apr-19-2017, 06:05 PM)lilCasio Wrote: white = pygame.color(255,255,255)  TypeError: 'module' object is not callable When I run the code that happens. Not to be rude but please post in the PyGame s...
Low_Ki_ Game Development 2 9,593 Apr-20-2017, 02:31 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020