Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Python examples - SIMPLE
#python 2.7.12 for i in range(1, 4): print(i) print(range(10, 10)) goStr = "go " * 3 print(goStr) print("goStr length = '" + str(len(goStr)) + "'") print("Type of goStr = '" + str(type(goStr)) + "'") print(type(goStr)) print(type(goStr[0])) print("'" + goStr[0:2] + "'") print(goStr.replace("go go", "Ready, set,")) print(goStr) str1 = "replace last" str2 = str1[8:12] print(str1.replace(str2, "done")) str1 = "replace last." str2 = str1[-5:-1] print(str1.replace(str2, "done"))
run
|
edit
|
history
|
help
0
axsd
Nama Bulan Python
PyProperty
wordscapes
MPS encoding
TIC TAC TOW.py
NewFoodTipper
fb_series
1.problem_name_1
16