forked from shashank-mishra219/Python-Complete-Guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPython_String.py
More file actions
23 lines (14 loc) · 500 Bytes
/
Copy pathPython_String.py
File metadata and controls
23 lines (14 loc) · 500 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Python Program Strings
tmp_str = "IneuronPythonClasses"
print("Input Str : ",tmp_str)
print("Length Of Input Str : ",len(tmp_str))
# # Iterate elements without index
print("Without Index Iteration")
for char in tmp_str:
print(char)
# # Iterate elements with index
print("With Index Iteration")
for idx in range(0,len(tmp_str)):
print("Character at ",idx," index is : ",tmp_str[idx])
print("Input Str in Upper Case : ",tmp_str.upper())
print("Input Str in Lower Case : ",tmp_str.lower())