Skip to content

Instantly share code, notes, and snippets.

@de1o
Created June 7, 2012 01:46
Show Gist options
  • Save de1o/2886039 to your computer and use it in GitHub Desktop.
Save de1o/2886039 to your computer and use it in GitHub Desktop.
output.py
initNum = int(raw_input("input the initial number:"))
delta = int(raw_input("input the delta:"))
cnt = int(raw_input("input the count number:"))
s = '0ps 0mv '
for i in range(cnt):
s += (str(initNum + delta*i) + 'ps 0mv ')
s += (str(initNum + delta*i + 1) + 'ps 1.035mv ')
s += (str(initNum + delta*i + 2) + 'ps 1.035mv ')
s += (str(initNum + delta*i + 3) + 'ps 0mv ')
print s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment