|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
Converting a character/text to uppercase/lowercaseASCIIstrutils: proc toLowerAscii(c: char): char strutils: proc toLowerAscii(s: string): string
𝥶In Python, 'a' is equivalent to "a". When you write 'a' in Python, it's actually a 1-long string. UnicodeIf you have Unicode characters, then use the unicode: proc toLower(c: Rune): Rune unicode: proc toLower(s: string): string
𝥶Python cheats a bit. In Python, there is no distinct |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |
||||||||