Skip to content

Instantly share code, notes, and snippets.

View Debanjan1234's full-sized avatar

Debanjan Debanjan1234

View GitHub Profile

number = input ('Enter Number Dear : ') if number > 0 : print("positive") elif number < 0 : print("negative") if number%2==0 : print("even") elif number%2!=0: print("Odd")

#python code for second to m,h conversion
seconds = input ('Enter Seconds: ')
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
print "%d:%02d:%02d" % (h, m, s)