Skip to content

Instantly share code, notes, and snippets.

@gurkanoluc
Created March 8, 2011 00:27
Show Gist options
  • Save gurkanoluc/859588 to your computer and use it in GitHub Desktop.
Save gurkanoluc/859588 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# coding: utf-8
from otomobil import *
def main():
c = Otomobil()
i = 0
while True:
try:
if i == 0:
c.calistir()
if i <= 5:
c.hizlan()
if i >= 5 and i <= 10:
c.yavasla()
elif i > 10:
c.durdur()
break
i += 1
except BenzinBitti:
print '20lt benzin koyulacak.'
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment