Jul-07-2017, 07:12 PM
(Jul-07-2017, 06:37 PM)OmarBrikaa Wrote: Ignore the indentation
One of the things we do not ignore is 'spacing'. It is one of the most important things things in Python. Refer to the Help Document section on how to properly post code.
As it stands, your script will never get past line 1. If line 4 is meant to be a dictionary, use curly braces '{}' not parenthesis '()'. In line 9, you forgot the underscore in "PC_Choice". If you want the script to keep repeating until the 'user' is a winner, use a 'while' loop with 'break' and continue'.
First, post the clean code and we will go from there.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition