Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = 1
- B = 10
- def main():
- line = get_initial_line()
- while True:
- move = input('CHANGE THIS TEXT: ')
- if input == 'l':
- line = move_character_left(line)
- elif input == 'r':
- line = move_character_right(line)
- else:
- break
- def get_initial_line():
- """
- Returns an initial line using range(A, B) and input()
- """
- line = ... # TODO: Write this part.
- return line
- def move_character_left(line):
- """
- Moves the virtual character left one position
- """
- line = ... # TODO: Write this part.
- return line
- def move_character_right(line):
- """
- Moves the virtual character right one position
- """
- line = ... # TODO: Write this part.
- return line
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement