Converting time inputs to military time

QuestionsConverting time inputs to military time
sethbeckerman5 Staff asked 4 years ago

The code I have so far:

I can only change the code from the first if statement to the
I'm getting an error that I don't think applies to my code? It's having a problem with my hour input being a string but it's clearly an int, so why can't I apply math to it? Does anybody know how I could troubleshoot this?


View on Stack Overflow