Cant get this to work


Welcome to this forum. In order for people to be able to help you, could you please:

  • Describe what you want to achieve,
  • Explain why your code does not work the way you want,
  • Paste your code formatted, keeping the indentation, so we can just execute it without having to guess,
  • If you get an error message, also paste it?

See About the Users category for how to format code on Discourse.