Lurker News
Last night, I introduced my kid to programming. We'd done some stuff with Mindstorms before, but she never really caught the bug for it. But for some reason, last night when I showed her some simple Python scripting to solve math problems and write to the console, she was enthralled.

After guiding her through a few things, she took the laptop off for a while and then came back with her first program, giggling like a maniac

    you='WOW!!!'
    fart='So many poops!'
    print(you,fart)
I'm pretty proud :D

Comments (136) 58 threads

Show all comments

Showing thread 7 of 58

jasonhansel1 reply#
PR review:

- Reformat with `black`; needs space around "="
- Change constants to uppercase, so YOU and FART
- Probably best to use an f-string, e.g. f"{YOU}{FART}"
- Needs tests
Otherwise LGTM

quotehelp18291 reply#
You forgot space between } and {
jasonhansel#
It depends on whether you want the whitespace or not; if so, the ideal would be to use:

    messages = [YOU, FART]
    print(" ".join(messages)
So that you can add additional messages (manually or programmatically) in the future. Always important to consider extensibility!