Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
Python
2D
Application
Buildin Function
Class
Data Structure
Data Type
Database
Development
Dictionary
Event
Exception
File
Function
GUI Pmw
GUI Tk
Language Basics
List
Math
Network
String
System
Thread
Tuple
Utility
XML
keeps '\' (Back splash) literally : String Length « String « Python
Python
String
String Length
keeps '\' (Back splash) literally
x =
"C:\py\code"
# keeps \ literally print x print len(x)
Related examples in the same category
1.
Get the length: number of items inside a string
2.
Get the length of a string with escape characters inside
3.
Output and get length of a string with special characters
4.
For Statements to list the string length
5.
Built-in function len() returns the length of a string