Python Forum
How to select between 2 variables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select between 2 variables
#1
Hi - super noob here.... so thanks in advance for any help on this.

I am trying to write a script for sports betting, just for fun...

I am getting stuck on how to have the user select the team that is favored to win.

Here is current code:
#Getting the final score of each team
team1 = int(input("Team1 score?"))
team2 = int(input("Team2 score?"))

#Getting the spread and favorite
spread = int(input("Spread?"))
fav = int(input("Who is favored?", )) <-- this where i'm stuck... how to have the user select the team that is favored between
team1 adn team 2
Reply


Messages In This Thread
How to select between 2 variables - by c_birdsong22 - Dec-02-2024, 04:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SQL select join operation in python(Select.. join) pradeepkumarbe 1 2,857 Feb-14-2019, 08:34 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020