Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

slicing strings in python

varible = "c#,python,java,javascript,rudy,css,html"
print(varible[0:2])# c#
print(varible[3:9])#python
print(varible[10:14])#java
print(varible[:2])#same as c#
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #slicing #strings #python
ADD COMMENT
Topic
Name
2+1 =