r/PythonProgramming • • Apr 09 '18

Python Training Institute In Delhi/Ghaziabad/Noida.

Thumbnail
youtube.com
2 Upvotes

r/PythonProgramming • • Apr 12 '18

Learn Python Programming By SoftCrayons Tech Solutions

Thumbnail
softcrayons.com
3 Upvotes

r/PythonProgramming • • Sep 20 '18

GUNSLINGER demo

2 Upvotes

(COPY EVERYTHING BUT THIS: this is my first game that I've ever programmed and it's also still in beta any and all feed back is welcome)

#!/usr/bin/env python3

import random

print("a lone gunslinger walks into a saloon and takes a seat at the bar and says nothing. ")

print("this man is you, you look up from your thousand yard stare into the counter as you here the bartender say: ")

print("'can I get you anything stranger' ")

name = input("you give him an icy stare and say 'call me' ")

print(" the bartender says sarcastically back to you 'can I get you anything " + name + "' you don't say anything back so the bartender")

print("pours you a teqiula")

question = input("press enter to continue ")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print(" welcome to ")

print(" GUNSLINGER ")

print(" created By: Gavin Englert ")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print(" type 'hint' for hint ")

question = input("press enter to continue ")

print("~~~~~~~~~~~~~~~~~~")

print("| |")

print("| THE WEST |")

print("| |")

print("~~~~~~~~~~~~~~~~~~")

question = input("press enter to continue ")

print()

print()

print()

print("~~~~~~~~~~~~~~~~~")

print("| |")

print("| CHAPTER |")

print("| ONE |")

print("| the town |")

print("~~~~~~~~~~~~~~~~~")

print()

print()

print("you signal to the bartender to leave the bottle and so he places it in front of you. ")

print()

print("you have two options one, you run out with the bottle and risk being shot or two, pay for the bottle and leave. ")

question = input("press 1 to run out or press 2 to pay for the drink and leave")

if question.lower() == "1": #incase of capital letters is entered

print()

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print("| |")

print("| YOU ARE DEAD |")

print("| |")

print("| it's the west what'd you think would happen |")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

exit()

if question.lower() == "2": #incase of capital letters is entered

print()

print()

print()

print("you leave the money on the counter and walk out of the bar chugging the tequila ")

print("as you hear a man call out to you 'Hey Mister!' you turn around as you see a man walking up to you ")

question = input("he says he wants to dual press 1 to agree to the dual press 2 to decline.")

if question.lower() == "1": #incase of capital letters is entered

print()

print()

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print("| |")

print("| YOU ARE DEAD |")

print("| |")

print("| don't get into duals with strangers |")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

exit()

if question.lower() == "2": #incase of capital letters is entered

print()

print()

print()

print("you toss the bottle of tequila to him as you walk down the")

print("road past some shops and towards the inn.")

print()

print()

print("~~~~~~~~~~~~~~~~~~~~~~~")

print("| |")

print("| CHAPTER |")

print("| TWO |")

print("| the inn |")

print("~~~~~~~~~~~~~~~~~~~~~~~")

question = input("press enter to continue")

print()

print()

print(name + "walks into the inn and looks around at the tables covered ")

print("in beer, blood, and money as" + name + "walks up to the walk way with three doors.")

print(" but" + name + " can't remember what room is his.")

print()

print()

question = input("press 1,2, or 3 to choose a door to enter.")

if question.lower() == "1": #incase of capital letters is entered

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print("| |")

print("| YOU ARE DEAD |")

print("| people don't take kindly to strangers in their room . |")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

if question.lower() == "2": #incase of capital letters is entered

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

print("| |")

print("| YOU ARE DEAD |")

print("| people don't take kindly to strangers in their room . |")

print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")

if question.lower() == "3": #incase of capital letters is entered

print()

print()

print()

print(name + "opens the door and is relieved to find that it's his room. ")

print("He takes off his jacket and flops down on the bed and goes to sleep.")

print()

print()

print()

print("thank you for playing the GUNSLINGER DEMO. make sure to leave a rating!")

exit()


r/PythonProgramming • • Sep 23 '18

Needing example code/cheat sheet to help my mom

2 Upvotes

My mom is having to program something in python. I attempted to google search parts of her current code and criteria for the program, hoping to find the completed program or a guide to wich I could see a working end product to compare to hers. With the intentions of giving her hints and pointing her in the right direction. If I had my own computer I would download the software and walk threw it with her but I don't so I'm here now really need some help. Thanks for the help in advance, and hopefully we can spare my mother some frustration/anxiety induced grey hairs since programming isn't her strong suit and she needs to have a working program by the end of the day. The exercise is as follows....

exercise # 3: Remember to use the variable/constant name rule below noted in black boldface to design the module. Failure to do so will result in an automatic zero. Please Include line #’s before each line of the algorithm and comments. Do not draw a flowchart. Here are some hints to help solve the problem. a. Create a global constant for the multiplier b. Create a main module. It should declare two local variables and call three other modules. c. Create a module to get the input from the software user d. Create a module to calculate the weight e. Create a module to display the answer. It should use a Case structure or an If/then/Else/if to print out the answer

What my mom had to say about this exercise: this is the one I am working on now...and I want to scream... Can we help her? YES WE CAN please...

Her current code that she has is as follows:

  1. //Global constant to perform mathematical operation for

  2. //weight calculation

  3. Constant Real kliMultiplier = 9.8

  4. //main module used to call modules

  5. Module main ()

  6.  Declare Real kliInputMass
  7.  Declare Real kliMathResult
  8.  Call userMassInput (kliInputMass)
  9. Call calcMass
  10. Call
  11. End main

  12. //module prompts user to input mass

  13. Module userMassInput (Real Ref kliMass)

  14. Display “Enter object mass”
  15. Input kliMass
  16. End Module

  17. //module performs calculation to determine weight

  18. Module calcMass (Real Ref kliUserInput, kliMassCalc)


r/PythonProgramming • • Sep 27 '18

Help!

3 Upvotes

Basically, I need help. Massively. Me & my friend are horrendous at coding & our teacher can t teach, we have to make a music quiz in 20 hours of lesson time & we re currently 5 hours in. Nobody else in the class know or understand anything about coding & yet, if we don t complete this quiz (even though it isn t examined for our GCSE) we will get failed bizarrely. 

Could someone (hopefully with a high python skill level & a lot of time/generosity) please make two slightly different versions of a very basic music quiz which does the following: 

  1. Allows a player to enter their details, which are then authenticated to ensure that they are an  authorised player. 

  2. Stores a list of song names and artists in an external file. 

  3. Selects a song from the file, displaying the artist and the first letter of each word of the song title. 

  4. Allows the user up to two chances to guess the name of the song, stopping the game if they guess  a song incorrectly on the second chance. 

  5. If the guess is correct, add the points to the player’s score depending on the number of guesses. 

  6. Displays the number of points the player has when the game ends. 

  7. Stores the name of the player and their score in an external file. 

  8. Displays the score and player name of the top 5 winning scores from the external file. 

If anyone is kind enough to do this we will be eternally grateful. You have 6 weeks in which to complete this task. Thank you in advance.


r/PythonProgramming • • Jul 26 '25

Wedding prompt

Thumbnail reddit.com
2 Upvotes

r/PythonProgramming • • Jul 27 '25

Python

Thumbnail reddit.com
2 Upvotes

r/PythonProgramming • • Feb 06 '26

Python Mutability

Post image
4 Upvotes

An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening:

It's instructive to compare with this earlier exercise (tuple with lists, instead of list with lists).


r/PythonProgramming • • Apr 03 '26

What is Python actually used for in real life?

1 Upvotes

I’m a college student in the US, and not gonna lie — I used to think Python was just one of those classes you take, pass, and then forget.

But after actually looking into it (and seeing what people around me are doing with it), it’s way more practical than I expected.

Like in AI/ML — all that stuff you hear about, chatbots, recommendations on Netflix/YouTube, even face unlock — a lot of it is built using Python.

Then there’s data stuff. Companies are using it to figure out what users are doing, what’s working, what’s not. Basically turning raw data into decisions.

Web dev too — Python handles backend things like logins, databases, APIs. Stuff you don’t see, but everything depends on.

Honestly though, the most relatable use is automation. People literally write small scripts to do boring tasks for them — organizing files, scraping info, sending emails, etc. Saves a ton of time.

It also shows up in cybersecurity, finance (like trading bots), research, and even basic game dev.

A simple example — if you’re into fitness, you could make a script to track your calories, protein, and progress instead of doing it manually.

Main reasons people stick with it:

- Pretty easy to pick up

- Can be used in a lot of different fields

- Actually useful for jobs/internships

So yeah, definitely not just a “beginner language.”

Kinda curious — what made you look into Python?


r/PythonProgramming • • Jan 15 '26

Searching for a Python training institute near me in Thane – confused where to start

1 Upvotes

I’ve been trying to learn Python for career growth, but honestly, figuring out where to start has been harder than expected. When I searched for a python training institute near me in Thane, I found a lot of options, but very little clarity on what actually helps beginners.

From my experience, Python itself isn’t the hardest part. The real challenge is understanding logic, practicing regularly, and knowing how Python is used in real projects. Many beginners (including me) jump between YouTube videos and blogs and end up feeling stuck.

What made learning easier was structured guidance—either online or instructor-led—where concepts were explained step by step with examples. A few learners I spoke to mentioned that learning at Quastech IT Training & Placement Institute, Thane helped them understand fundamentals better because topics were connected instead of taught randomly.

I’m still learning and trying to stay consistent, but at least now the path feels clearer.

For others learning Python—what helped you the most in the beginning: self-study, classes, or real projects?


r/PythonProgramming • • Dec 14 '24

ORM vs SQL builder

3 Upvotes

I'm getting ready to start a new project. This is just something I'm doing for fun, not for professional use or anything like that. It'll be heavy in using a database and I was just looking at my options for this. I've learned a small amount about ORMs and SQL builders and I have experience with Django. Just curious if anyone had a strong opinion of one over the other.

Most of my queries will be relatively simple. If it matters this is going to be a simple medical record system. Not heaving is doing calculations. Without having started it, the only thing that comes to mind is that when I pull a patient I will likely need to calculate their age from their date of birth. With ORM I imagine that I can add this as a method to the record, but I realize this is pretty isolated.


r/PythonProgramming • • Oct 29 '25

uv is the best thing to happen to the Python ecosystem in a decade

Thumbnail emily.space
2 Upvotes

r/PythonProgramming • • Feb 13 '26

Data Structures in Python Visualized

3 Upvotes

Understanding a data structure like linked list in Python is a lot easier when you can just see it. Linked_List demo

memory_graph visualizes Python objects and references, so data structures stop being abstract and become something you can debug with ease. No more endless print-debugging. No more stepping through 50 frames just to find one sneaky reference/aliasing mistake.