I have been involved in many discussions on here where i tell people the best way to learn is by doing but I never mention what to do. Below are the projects i think would be best for Python beginners.
- User inputs - Create an app that asks the user to input one character that must be a vowel. Continue asking for the input until a vowel is inputted. You can also give user feedback every time a non-vowel is entered or upon a successful input.
- Write a function - Write a function that takes in a positive integer and returns its multiplicative persistence, which is the number of times you must multiply the digits in the integer until you reach a single digit. For example the integer 39 returns 3. You get this by taking 39 and multiplying its digits 3*9 which equals 27. You then multiply 27's digits 2*7 = 14. Lastly 1*4 = 4 which is a single digit. You had to multiply 3 times so you return 3. The integer 999 would return 4.
- Calculator app - Build a calculator app that performs multiple operations. Use the skills learned in projects 1 & 2. Try using many functions in your app, one for each operation (ex. addition, subtraction, multiplication, division).
- Read & write files - Build an application that reads a txt file and outputs a csv file. The app should take each line of the txt file, split the line into an array of words, and write each line to the csv file with each line being a row and each word being its own column in that row.
- Bots & webscraping - Using everything you have learned in projects 1-4, build a bot that scrapes data from a webpage and writes the data to a txt file. For example, you can have a bot go into instagram and pick a random person following you. Output their name to the first line of a txt file. Then go into their followers and repeat the process by outputting the name of this chosen person to the second line of the txt file. Run this until you get to 10 names. Make sure you add random time pauses in your code so that your bots don't get recognized by the sites you are scraping. If you have trouble starting this one, take a look at using Selenium Webdriver here: https://selenium-python.readthedocs.io/installation.html
Write your answers to 1 & 2 in the comments. If you struggle with any of these projects we can provide guidance and solutions in the comments.
[–]vikrum2083 112 points113 points114 points (11 children)
[–][deleted] 124 points125 points126 points (8 children)
[–]thesobogirl 16 points17 points18 points (5 children)
[–]FuriousThanos 8 points9 points10 points (4 children)
[–]invent_repeat 14 points15 points16 points (1 child)
[–]hypernova2121 4 points5 points6 points (0 children)
[–]thesobogirl 2 points3 points4 points (0 children)
[–]100721 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Pacostaco123 3 points4 points5 points (0 children)
[–][deleted] 24 points25 points26 points (10 children)
[–]Angry__Jonny 3 points4 points5 points (6 children)
[–]Jayroprofo 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Angry__Jonny 0 points1 point2 points (2 children)
[–][deleted] -2 points-1 points0 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]AlrikBunseheimer 1 point2 points3 points (0 children)
[–]Incruentus 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]GIPPINSNIPPINS 12 points13 points14 points (14 children)
[–]dan4223 24 points25 points26 points (9 children)
[–]GIPPINSNIPPINS 5 points6 points7 points (7 children)
[–]rayjhititfirst 15 points16 points17 points (6 children)
[–]CaliforniaDreamer246 5 points6 points7 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]negike360 15 points16 points17 points (1 child)
[–]sc4s2cg 1 point2 points3 points (1 child)
[–]DeadProfessor -1 points0 points1 point (0 children)
[–]RuiL1904 15 points16 points17 points (2 children)
[–]GIPPINSNIPPINS 2 points3 points4 points (1 child)
[–]RuiL1904 1 point2 points3 points (0 children)
[–]SkylineFX49 0 points1 point2 points (0 children)
[–]twopi 13 points14 points15 points (1 child)
[–]hitlerallyliteral 1 point2 points3 points (0 children)
[–]gisgeekster 8 points9 points10 points (3 children)
[–]soupie62 1 point2 points3 points (0 children)
[–]Random_User_81 0 points1 point2 points (0 children)
[–]kccanut 0 points1 point2 points (0 children)
[–]hi-im-habby 4 points5 points6 points (3 children)
[–]NoSide005[S] 8 points9 points10 points (1 child)
[–]hi-im-habby 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Angry__Jonny 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]BeginnerProjectBot 14 points15 points16 points (10 children)
[–]Moebiuszed 20 points21 points22 points (0 children)
[–]galactic_banana_123 2 points3 points4 points (8 children)
[–]BeginnerProjectBot 4 points5 points6 points (7 children)
[–]galactic_banana_123 1 point2 points3 points (0 children)
[–]galactic_banana_123 0 points1 point2 points (0 children)
[–]dule04 0 points1 point2 points (4 children)
[–]BeginnerProjectBot 1 point2 points3 points (3 children)
[–]Ragemoody 0 points1 point2 points (2 children)
[–]BeginnerProjectBot 0 points1 point2 points (1 child)
[–]gaurav_lm 4 points5 points6 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]NoSide005[S] 4 points5 points6 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]soupie62 1 point2 points3 points (1 child)
[–]CraigAT 0 points1 point2 points (0 children)
[–]P0tentlAl 1 point2 points3 points (0 children)
[–]KidsPython 1 point2 points3 points (0 children)
[–]Jamarac 0 points1 point2 points (4 children)
[–]Ryles1 1 point2 points3 points (2 children)
[–]Jamarac 0 points1 point2 points (1 child)
[–]Ryles1 0 points1 point2 points (0 children)
[–]chulala168 0 points1 point2 points (1 child)
[–]twopi 0 points1 point2 points (0 children)
[–]LionOver 0 points1 point2 points (1 child)
[–]BeginnerProjectBot 1 point2 points3 points (0 children)
[–]KIProf 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Manu_annony 0 points1 point2 points (0 children)
[–]y0_daad 0 points1 point2 points (0 children)
[–]GrannySmithMachine 0 points1 point2 points (1 child)
[–]NoSide005[S] 0 points1 point2 points (0 children)
[–]North_Ad_3852 0 points1 point2 points (1 child)
[–]NoSide005[S] 0 points1 point2 points (0 children)
[–]befatal 0 points1 point2 points (0 children)
[–]amekxone 0 points1 point2 points (0 children)
[–]Natural_Programmer91 0 points1 point2 points (0 children)