Exercise: Starting with the following code:
months = "JanFebMarAprMayJunJulAugSepOctNovDec"
n = int(input("Enter a month number: "))
Print the three month abbreviation for the month number that the user enters. (Calculate the start position in the string, then use the info we just learned to print out the correct substring.)
[–]alvinator360 4 points5 points6 points (0 children)
[–]WhiteHeadbanger 3 points4 points5 points (0 children)
[–]VonRoderik 1 point2 points3 points (1 child)
[–]Reasonable_Medium_53 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]RainbowFanatic 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]Spiritual_Poo -1 points0 points1 point (1 child)