Python Forum

Full Version: Open source project that a beginner could contribute to?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm an experienced programmer but I'm new to python. I'd like to get more experience in Python by working on an open source project, particularly one related to urban planning or maps since that interests me. Does anyone know any active projects that would be a good fit for me?
You could start at GitHub
(Apr-02-2017, 04:14 PM)sparkz_alot Wrote: [ -> ]You could start at GitHub

That's a good start. I see there's only two projects there that have been updated recently though. It's important that I find a currently active project so I can get feedback from other developers.
(Apr-03-2017, 03:17 PM)JJJame Wrote: [ -> ]
(Apr-02-2017, 04:14 PM)sparkz_alot Wrote: [ -> ]You could start at GitHub

That's a good start. I see there's only two projects there that have been updated recently though. It's important that I find a currently active project so I can get feedback from other developers.

I don't think you will get much feedback other than "keep off the code" from developers of active OSS projects until you have reached an acceptable level... Until then self-criticism is your best friend. Read other people's code and compare with yours.
Suggest you try solving some computer puzzles: http://sixrevisions.com/resources/10-puz...ng-skills/
(Apr-03-2017, 10:09 PM)Larz60+ Wrote: [ -> ]Suggest you try solving some computer puzzles: http://sixrevisions.com/resources/10-puz...ng-skills/

Sweet thanks for the site
You could help me with my project. If you have experience with other languages, but are just new to python you could help me solve my logic puzzle that im facing. Maybe i will publish the code to github later, so you can help work on it easier. It is to help a local foodbank, so it is towards a good cause. here is the link: https://python-forum.io/Thread-Help-on-a...-the-needy
(Apr-09-2017, 01:49 AM)teenspirit Wrote: [ -> ]You could help me with my project. If you have experience with other languages, but are just new to python you could help me solve my logic puzzle that im facing. Maybe i will publish the code to github later, so you can help work on it easier. It is to help a local foodbank, so it is towards a good cause. here is the link: https://python-forum.io/Thread-Help-on-a...-the-needy
Sure thing, let me know when you put it on GitHub!
Here is the Github Repo on that project: https://github.com/dariankbrown/The-5000 You should probably read through the forum post about it and the changes and updates it needs in the forum thread here: https://python-forum.io/Thread-Help-on-a...-the-needy Thanks in advance.
(Apr-10-2017, 02:51 AM)teenspirit Wrote: [ -> ]Here is the Github Repo on that project: https://github.com/dariankbrown/The-5000 You should probably read through the forum post about it and the changes and updates it needs in the forum thread here: https://python-forum.io/Thread-Help-on-a...-the-needy Thanks in advance.

May I make a suggestion? I know this is simple and silly but I've learned to try to avoid even the simplest of bugs. In blocks of code such as:

def main():
    # Declaring the necessary variables and dictionary.
    large, small = 0, 0
    items = {}
    while True:
        # The following is our main menu that the user will see.
        userin = input(
            "Type 'i' to enter new items, 'r' to begin registering new families, or 't' to get currnet total and stats, e is to exit: ")
        if userin == 'i':
            food_items(items)
        elif userin == 'r':
            large, small = one_or_two(large, small)
        elif userin == 't':
            total(large, small, items)
        elif userin == 'e':
            total(large, small, items)
            final_total(large, small, items)
            break
        else:
            print('An unknown option: ', userin, ' has been entered. Please try the last entry again.')
When entering the string value, if a user enters it in capital letters it will give this traceback:

Error:
/usr/bin/python3.5 "/root/PythonProjects/External_Teachings/The 5000/the_5000.py" Type 'i' to enter new items, 'r' to begin registering new families, or 't' to get currnet total and stats, e is to exit: I An unknown option:  I  has been entered. Please try the last entry again. Type 'i' to enter new items, 'r' to begin registering new families, or 't' to get currnet total and stats, e is to exit
This is how I normally avoid this:

def main():
    # Declaring the necessary variables and dictionary.
    large, small = 0, 0
    items = {}
    while True:
        # The following is our main menu that the user will see.
        userin = input(
            "Type 'i' to enter new items, 'r' to begin registering new families, or 't' to get currnet total and stats, e is to exit: ")
        if userin.lower() == 'i':
            food_items(items)
        elif userin.lower() == 'r':
            large, small = one_or_two(large, small)
        elif userin.lower() == 't':
            total(large, small, items)
        elif userin.lower() == 'e':
            total(large, small, items)
            final_total(large, small, items)
            break
        else:
            print('An unknown option: ', userin, ' has been entered. Please try the last entry again.')
Or you can add an 'or' statement to the string saying...:

if userin == 'i' or 'I':
    food_items(items)
You can also avoid ValueErrors silently and still give the else statement that you used by using a try/except/else block so that it makes sure that the correct value must be entered in order to move forward... I guess it's doing this now but I find try/except/else blocks more efficient. Correct me if I am wrong?
Pages: 1 2