Python Forum
Simulate an answer based on user input [Beginner needs guidance]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simulate an answer based on user input [Beginner needs guidance]
#1
Question 
I'm a complete beginner looking for advice/guidance. Basically I want to build a program that simulates a suggestion based on existing probabilities and user input.
Let me give you an example: Let's say there are 2 football games. There's 3 different outcomes per game with different probabilities
Game 1) Team A - Team B probabilities are Team A wins: 0.3 | Draw: 0.5 | Team B wins: 0.2
Game 2) Team C - Team D probabilities are Team C wins: 0.5 | Draw: 0.4 | Team D wins: 0.1
I want the program to ask the user for the highest acceptable probability for the combination of outcome.
Lets say the user answers: 0.03.
Then there's only 2 viable options for the program to return. Either 1) Team A wins & Team D wins or 2) Team B wins & Team D wins
Both having a probability of lower than or equal to >= 0.03.

Since I 'm lacking knowledge to ask the right questions I'm hoping that anyone here would be able to guide me a bit. Perhaps tell me to read about x and y etc.

I do have one question for starter: Should the teams and the probabilities be contained in a dictionary?
Reply


Messages In This Thread
Simulate an answer based on user input [Beginner needs guidance] - by Bombardini - Nov-11-2022, 03:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Answer for newbie, Sqlite3 Froger 2 958 Sep-27-2023, 05:33 PM
Last Post: noisefloor
  Coding answer for newbie cg3 2 1,297 Aug-05-2023, 12:17 PM
Last Post: jefsummers
  How to create a menu and execute a function based on user selection in python? Thedarkphoenix 1 1,397 Nov-23-2022, 07:53 PM
Last Post: Larz60+
  Help beginner input csv on python adri1998en 2 1,524 Apr-20-2022, 07:48 AM
Last Post: VadimCr
  beginner having text based adventure trouble mrgee 2 2,138 Dec-16-2021, 05:07 AM
Last Post: buran
  Print user input into triangle djtjhokie 1 2,482 Nov-07-2020, 07:01 PM
Last Post: buran
  Changing Directory based on user input paulmerton4pope 13 8,310 Aug-14-2020, 11:48 AM
Last Post: GOTO10
  sys.stdin to do a word count based on user entry Kaltex 3 3,787 Jul-19-2020, 01:54 PM
Last Post: deanhystad
  What am I doing wrong to not get the answer pav1983 7 3,835 Jun-25-2020, 08:53 PM
Last Post: ndc85430
  how to add the user input from file into list wilson20 8 4,432 May-03-2020, 10:52 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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