Python Using Databases in Python Gettin' CRUD-y With It Add An Entry

Sasuke Uchiha
PLUS
Sasuke Uchiha
Courses Plus Student 298 Points

Ctrl+D is not working as EOF

It's not related to any editor. I even tried this on CMD and Git Bash. When I am pressing Ctrl+D, it's simply showing '^D' instead of passing EOF. I found an alternative, I need to press Ctrl+Z and press enter. But I need to do it as Kenneth did in the video. Any suggestions?

Here's a screenshot of the same.

Brandon White
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brandon White
Treehouse Moderator

Based on your screenshot it looks like you’re not on a windows machine. I don’t know that this will work, but if you’re using a Mac, maybe try Cmd + D.

3 Answers

Hank Tao
Hank Tao
7,539 Points

Went around the problem as per https://github.com/micropython/micropython/issues/3356 ctrl+d appears as \x04. The custom function finishes when \x04 appears on its own in a new line.