Python Forum
Multi set string inputs/outputs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi set string inputs/outputs
#1
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
Reply


Messages In This Thread
Multi set string inputs/outputs - by kwmcgreal - Sep-26-2020, 06:19 PM
RE: Multi set string inputs/outputs - by bowlofred - Sep-26-2020, 09:39 PM
RE: Multi set string inputs/outputs - by kwmcgreal - Sep-26-2020, 10:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Combining outputs into a dataframe rybina 0 152 Mar-15-2021, 02:43 PM
Last Post: rybina
  ONE input => THREE outputs Tricia279 6 360 Jan-14-2021, 08:52 AM
Last Post: perfringo
  How to use subprocess to get multiple data outputs in desired folder? 3SG14 1 495 Sep-19-2020, 05:46 PM
Last Post: bowlofred
  How to write a response if a user inputs a string horuscope42 3 726 Apr-29-2020, 03:39 PM
Last Post: deanhystad
  Outputs missing SamAnw 4 638 Feb-12-2020, 04:32 PM
Last Post: adetheheat
  Problem with accepting multiple string inputs Ryan_Todd 5 812 Jan-22-2020, 06:12 PM
Last Post: buran
  Python convert multi line into single line formatted string karthidec 2 2,485 Dec-23-2019, 12:46 PM
Last Post: karthidec
  Interpreter and running a .py file give different outputs PythonNPC 5 921 Jul-21-2019, 01:07 PM
Last Post: PythonNPC
  Save outputs to Desktop cisicomania 1 1,131 Aug-31-2018, 10:08 AM
Last Post: Gribouillis
  Help Editing/Problem with outputs stanthaman42 7 1,817 Jul-11-2018, 05:30 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020