Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
^C is 3
#1
if you have "^C", what Python code can give the value 3 for it? ord('\n') gives 10, but ord('^C') does not give 3. this is because len("^C") is 2 and ord() only works with strings that have a len() of 1.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
^C is 3 - by Skaperen - Aug-04-2018, 04:49 AM
RE: ^C is 3 - by DeaD_EyE - Aug-04-2018, 08:53 AM
RE: ^C is 3 - by Gribouillis - Aug-04-2018, 10:20 AM
RE: ^C is 3 - by Skaperen - Aug-05-2018, 05:58 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020