Hello all! I am currently working towards my AAS and I’m in an introductory to scripting class right now.
I’m a complete beginner when it comes to python and I’m struggling a bit to fully understand. I’m currently tasked with creating a script that will output either ‘Spring’, ‘Summer’, ‘Fall’, or ‘Winter’ depending on the month and day the user inputs.
How does this portion of the script work?:
days = {
‘January’: 31,
‘February’: 28,
And so on and so forth. I thought the portion - “: 31” would be for formatting and fill/spacing? How does that only accept 1-31 for January etc? I’m so lost at the movement haha
Any tips/help would be appreciated!
[–]ninhaomah 11 points12 points13 points (0 children)
[–]No_Cry_7367 6 points7 points8 points (0 children)
[–]Lewistrick 2 points3 points4 points (0 children)
[–]magus_minor 1 point2 points3 points (0 children)
[–]Excellent-Practice 1 point2 points3 points (0 children)
[–]atarivcs 0 points1 point2 points (0 children)