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.
Python computer studies help needed Watch
- Thread Starter
Last edited by Peterson957; 11-10-2017 at 15:16.
- 11-10-2017 15:14
- 11-10-2017 23: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"))