Sep-26-2020, 06:19 PM
I actually have no idea what to even call this as I am brand new to python
I am trying to create a simple program that generates a number of different string outputs depending on what inputs the user enters.
For example: if they input the month the program would output a message depending on what month they entered (i.e. if they input December or January or February output would be: Northern Hemisphere Winter; input other months = different seasons... you get the point.
I couldn't figure out what to look up to find this out. Making if then else statements seemed burdensome as opposed to using some sort of list definition or something.
Can I take a string input and convert a list of them into another set value ex: December, January, February, =winter?
Thank you
Kevin
I am trying to create a simple program that generates a number of different string outputs depending on what inputs the user enters.
For example: if they input the month the program would output a message depending on what month they entered (i.e. if they input December or January or February output would be: Northern Hemisphere Winter; input other months = different seasons... you get the point.
I couldn't figure out what to look up to find this out. Making if then else statements seemed burdensome as opposed to using some sort of list definition or something.
Can I take a string input and convert a list of them into another set value ex: December, January, February, =winter?
Thank you
Kevin