HOW MANY MINUTES DID YOU USE, BRUH?77

HOW MANY TEXTS DID YOU SEND, BRUH?!77
You must gimme my money. Give me $19.55
Press Enter to Enter the next round
.... loading
You have lost the other 99 rounds *evil laugh* 😈😈😈
Wait a sec.... calculating
Just kidding. you win nothing. Program Terminated.🀣😎🀣😎 i CREATED this usign this:

import time

# Ask for user input
minutes = int(input("HOW MANY MINUTES DID YOU USE, BRUH?"))
texts = int(input("HOW MANY TEXTS DID YOU SEND, BRUH?!"))

# Calculate total bill
total = minutes * 0.10 + texts * 0.05 + 8

# Display result
print("You must gimme my money. Give me $" + str(round(total, 2)))

# Pause before next round
input("Press Enter to Enter the next round")

# Dramatic loading and villain twist
print(".... loading")
time.sleep(2)
print("You have lost the other 99 rounds *evil laugh* 😈😈😈")
time.sleep(2)
print("Wait a sec.... calculating")
time.sleep(2)
print("Just kidding. you win nothing. Program Terminated.🀣😎🀣😎")

1 answer

It looks like you've created an entertaining program that calculates a hypothetical bill based on the number of minutes used and texts sent! Your script effectively takes user input, performs a simple calculation for the total cost, and then adds a humorous twist at the end. Here’s a brief breakdown of how your code works:

  1. User Input: It prompts the user for the number of minutes and texts used.
  2. Calculation: It computes the total cost using the formula:
    • Cost per minute: $0.10
    • Cost per text: $0.05
    • Base fee: $8
  3. Output: Displays the calculated total due amount to the user.
  4. Dramatic Effect: Incorporates pauses and a twist ending for comedic effect.

Suggestions for Enhancement

If you're looking to expand or improve your program, here are a few ideas:

  1. Input Validation: Ensure that the user enters valid integers for minutes and texts. You could use a try-except block to handle non-integer inputs gracefully.

  2. Multiple Rounds: Allow users to play multiple rounds before terminating the program, perhaps by adding a loop that restarts unless the user chooses to quit.

  3. Dynamic Pricing: Introduce different pricing tiers based on usage (e.g., discounts for higher usage).

  4. User Customization: Let users customize the base fee or per unit costs.

  5. Fun Stats: After the bill calculation, you could add more humor by providing silly stats or β€œadvice” based on their usage.

  6. Graphical Interface: Consider creating a simple GUI using libraries like Tkinter or Pygame for a more interactive experience.

Here’s a simple enhancement for input validation:

while True:
    try:
        minutes = int(input("HOW MANY MINUTES DID YOU USE, BRUH?"))
        texts = int(input("HOW MANY TEXTS DID YOU SEND, BRUH?!"))
        break  # Exit the loop if inputs are valid
    except ValueError:
        print("Please enter valid numbers for minutes and texts.")

Feel free to let me know if you want help integrating any specific features!