Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. print "Time converter"
  2. in_time = int(raw_input("Input time value:"))
  3. in_type = str(raw_input("Input value type (s,m,h):"))
  4. convert_to = raw_input("Input out value type (s,m,h):")
  5. result = in_time
  6. if in_type == 'h':
  7.     if convert_to == 's':
  8.         result = in_time * 60 * 60
  9.     if convert_to == 'm':
  10.         result = in_time * 60
  11. if in_type == 'm':
  12.     if convert_to == 's':
  13.         result = in_time * 60
  14.     if convert_to == 'h':
  15.         result = float(in_time) / 60
  16. print "Convertation result:"
  17. print in_time, in_type, " equal ", result, convert_to




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012