Skip to content

Conversation

@curiouskiwi
Copy link
Contributor

@curiouskiwi curiouskiwi commented Oct 28, 2025

The spec requires a prompt so stdin prompt should be True. This will also solve the long-standing issue of check50 reporting "Name: Name: ..." when the student fails to add a new line before printing the final message as illustrated in the demo. Instead they will now (correctly) see

:( input of "Liesl" yields "Adieu, adieu, to Liesl"
    expected "Adieu, adieu, ...", not "Name: Adieu, a..."

Note that the prompt remains False for the EOF check, otherwise it would consume the Name: on the final line and not alert to the error there.

The spec requires a prompt so stdin prompt should be True.  This will also solve the long-standing issue of check50 reporting "Name: Name: ..." when the student fails to add a new line before printing the final message.
Instead they will now (correctly) see
```
:( input of "Liesl" yields "Adieu, adieu, to Liesl"
    expected "Adieu, adieu, ...", not "Name: Adieu, a..."```

Note that the prompt remains False for the EOF check, otherwise it would consume the Name: on the final line and not alert to the error there.
@curiouskiwi
Copy link
Contributor Author

@rongxin-liu I wonder if you might have a look at this? Thanks!

@rongxin-liu
Copy link
Contributor

@curiouskiwi Looks good to me.

@rongxin-liu rongxin-liu merged commit 6a017b1 into 2022/python Jan 13, 2026
@rongxin-liu rongxin-liu deleted the curiouskiwi-patch-adieu branch January 13, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants