So ive got this code in python
It basically adds the population of 2 countries
Trouble is I dont think I can use int or float for a word input so the last part where it adds them doesnt work.
Turn on thread page Beta
Python computer studies help needed watch
- Thread Starter
Last edited by Peterson957; 11-10-2017 at 14:16.
- 11-10-2017 14:14
- 11-10-2017 22:33
Your missing a bracket buddy! Put a second bracket under the 'SecondCountry' variable and it will work!
secondCountry=(input("Please select another country from the same list:\nJapan\nGermany\nIran\nUK\ nCanada\nAustralia\nUSA\nBulgari a\nSweden\n"))