I am writing a script that compares the temperature of two cities, and I want to be able to switch which cities I'm comparing without having to rewrite my code. Therefore I wrote the following code:
prompt = "What is the file address to the first city?"
firstcity = input(prompt, 's')
To which an answer could be: Cities/Paris.txt
Which would replace:
I'm not aware of a datatype for a fileadress, and am left unsure of how i would go about solving this problem.