Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #36.9K
Re:
hi ... im trying to write a function that tells you if the time you called is a correct military time .... heres what i have so far [CODE]def valid_mil_time(mtime): if mtime <= 2359 : print ("true") else: print ("false")[/CODE] but if i was to call it, it looks like … |
|
I need to check if a float number has decimals or not. This is what I've tried to do this far but it doesn't seem to work. What am i doing wrong, is there a better way? [CODE] n =[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0] a = [1.5,2] b = a[0] for i in range(len(n)): … |