Advertisement
asweigart

renameturtle

Nov 12th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. -- Rename the turtle.
  2.  
  3. print('The current name is ' + os.getComputerLabel())
  4. print('Enter the new name:')
  5. local newName = input()
  6. os.setComputerLabel(newName)
  7. print('The new name is ' + os.getComputerLabel())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement