MiktheFrik
Coder
Here's the assignment
running into so many errors with every different attempt, a push to the right direction would be appreciated a lot.
Python:
def military_time():
mil_time = int(input("Please enter military time: "))
for i in range(mil_time): # I'm "subscripting" so it isn't allowing me to check through the index but that is my goal
if(int(mil_time[0:1]) % 12): # new to modula but it seems simple to implement for this assignment
print(mil_time)
#print(str(civilian_hours) + ":" + str(minutes), civilian_ampm) example code provided as a hint
if __name__ == '__main__':
military_time()
running into so many errors with every different attempt, a push to the right direction would be appreciated a lot.