Advertisement
Guest User

sdafasdf

a guest
Sep 15th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. A = 1
  2. B = 10
  3.  
  4.  
  5. def main():
  6. line = get_initial_line()
  7. while True:
  8. move = input('CHANGE THIS TEXT: ')
  9. if input == 'l':
  10. line = move_character_left(line)
  11. elif input == 'r':
  12. line = move_character_right(line)
  13. else:
  14. break
  15.  
  16.  
  17. def get_initial_line():
  18. """
  19. Returns an initial line using range(A, B) and input()
  20. """
  21. line = ... # TODO: Write this part.
  22. return line
  23.  
  24.  
  25. def move_character_left(line):
  26. """
  27. Moves the virtual character left one position
  28. """
  29. line = ... # TODO: Write this part.
  30. return line
  31.  
  32.  
  33. def move_character_right(line):
  34. """
  35. Moves the virtual character right one position
  36. """
  37. line = ... # TODO: Write this part.
  38. return line
  39.  
  40.  
  41. if __name__ == '__main__':
  42. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement