Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage: "Dive into Python" code sample five: add Unicode animal(s) #2230

Open
jayaddison opened this issue Jan 18, 2023 · 1 comment
Open

Comments

@jayaddison
Copy link

Is your feature request related to a problem? Please describe.
The Python homepage includes a slideshow of five sample Python programs, to provide a sense of what code written in the language looks like, and how to perform some common activities.

Code sample 5 is about reading input from the user and printing output, and has the comment-title # Simple output (with Unicode).

image

(pedantically speaking: the sample code shown does already use Unicode, if the reader is using Python 3 - because Unicode is the native string format for that version)

It'd be nice (and fun) to include at least one non-typical Unicode character - like an emoji animal character - to demonstrate the extent of Unicode support within Python more clearly.

Describe the solution you'd like
It would be great if code sample 5 of the "Dive into Python" section on the Python homepage could include at least one Unicode animal.

Perhaps the conversation could be updated to demonstrate a conversation between a snake and a robot? Are robots and snakes compatible as friends? I'm not really sure.

Describe alternatives you've considered

  • Python speaks to Python (small diff, but potentially not that interesting)
  • Python speaks to a bird (could be risky)
  • Python speaks to a different kind of snake (would be nice, although I don't know whether Unicode provides symbols representing that many different kinds of snake)

Additional context
The tricky part may be updating the HTML representation of the code sample's output that appears on the homepage. Although HTML does support Unicode, reference materials may be helpful to properly encode some characters.

@jayaddison
Copy link
Author

(note: I'm unsubscribing from this issue on GitHub since I don't think I need to be involved for the implementation, and because it's not urgent)

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

No branches or pull requests

1 participant