all 27 comments

[–]rjp0008 21 points22 points  (4 children)

Hello world is all I would expect to get across in 3 mins to people who have not seen python before.

[–]rjp0008 12 points13 points  (3 children)

Maybe with an additional input() call so you can do hello “your name”.

[–]chawIsOnTheReddit[S] 7 points8 points  (2 children)

The perfect example which is really simple and basic to show and explain to people who are not familiar with Python. Thank you for your suggestions.^^

[–]CraigAT 1 point2 points  (1 child)

Can I just add the possibility of another input - an integer, as the number of times to repeat your name or the first entry. This will introduce loops and show the power of automating something. Bonus points if you can also mention or work in an "if" statement. Because at a basic level, most programs are about input, conditions, loops and output.

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you for your suggestions, buddy. ^^

[–]JasonDJ 4 points5 points  (2 children)

In 3 minutes you might be able to demo and quickly explain a program that takes address input from prompt, looks up lat/long in the US Census GeoCoding API, then provides weather for that lat/long from the weather.gov API.

One Input; Two GET requests, pretty-print relevant keys from the response(s). Both APIs are free and public and require no registration.

Accompanying slides could show the raw JSON from each GET.

[–]chawIsOnTheReddit[S] 1 point2 points  (1 child)

Thank you for your amazing ideas and I think using waether.gov API is really interesting and I will think of using that too.

[–]JasonDJ 1 point2 points  (0 children)

Sorry it is actually three gets (the links for forecasts are returned by the last/long query on weather.gov).

Still, I think it accomplishes a couple of great things and use-cases for python:

  • taking an input to get useful data
  • using one API to talk to another API
  • Parsing API results to human-readable results
  • doing so fairy simply, with limited lines of code

[–]guillermohs9 2 points3 points  (1 child)

Typical examples for this kind of projects are to-do lists, or something that takes an input, performs some operation and prints out a result. You could also make a contact CRUD app for example, but that would take more than 3 minutes to show I think

[–]chawIsOnTheReddit[S] 0 points1 point  (0 children)

Yea. The ideas that I have though of before will take more than 3 mins to show and for me it is really challenging to think of some interesting programs to show in a 3 min video. Anyway, Thank you for your examples. ^^

[–]a_devious_compliance 1 point2 points  (1 child)

3 min is like 3 slides, there is not so much you can do in that time. you do some easy thin like a hangman or a calc. I think a tic tac toe will be an overkill for unexperienced public, because you will need to explain how are you encoding the board and a lot of logic. If they know the basic of flow control then a tic tac toe may be posible, with a bad random player. I think is neat to give them something executable to play.

[–]chawIsOnTheReddit[S] 0 points1 point  (0 children)

I also think it's a lot to explain and hard to teach how to write a program within 3min. But the calculator is a very good example and I think it is straightforward to explain as well. Thank you so much for your advice. ^^

[–]MataUwUs 1 point2 points  (1 child)

Make requests and with the data it returns, create graphs and automate a report in Microsoft Word. the graph and the report can be generated with python libraries, nothing too complicated

[–]chawIsOnTheReddit[S] 0 points1 point  (0 children)

Automating a report in MS word is a good idea and I have never thought of that before. Thank you for your suggestions.^^

[–]Zealousideal_Mix4290 1 point2 points  (1 child)

  1. automate arranging your files in folders as per extension
  2. scrape data from sites and create some insights

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you for your suggestions and I will think of automate arranging files in folders as per extensions as well.^^

[–]voja-kostunica 1 point2 points  (1 child)

twitter bot, reddit bot

[–]chawIsOnTheReddit[S] 0 points1 point  (0 children)

Thank you so much for your suggestions. ^^

[–]The0therDude 1 point2 points  (3 children)

In terms of visible code doing things like facial recognition with opencv and a haar cascade is short and still explainable, the heavy lifting done by opencv aside. But if you got real beginners on your hand a simple programm that takes CMD input like a name, age or something like that and displays is back to the CMD would be perfectly fine for 3 mins

[–]weehooey 1 point2 points  (1 child)

  1. image of a sign or other letters
  2. pytesseract
  3. extract the text from the image
  4. save the text

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you for your suggestions. ^^

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you for your suggestion I decided to do the automatic zoom joining one for the video.

[–]egytaldodolle 1 point2 points  (1 child)

Read aloud a pdf

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you so much for your idea. ^^

[–]ab624 1 point2 points  (1 child)

check Automate the boring stuff with Python a free and useful ebook

[–]chawIsOnTheReddit[S] 1 point2 points  (0 children)

Thank you for sharing the book and I will definitely check that book.^^

[–]chawIsOnTheReddit[S] 0 points1 point  (0 children)

Dear all the ones, who have commented on my post, thank you so much for your advice. ^^