You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
180 B
15 lines
180 B
4 years ago
|
x:str = "abc"
|
||
|
a:str = ""
|
||
|
b:str = ""
|
||
|
c:str = ""
|
||
|
|
||
|
def str_get(s:str, i:int) -> str:
|
||
|
return s[i]
|
||
|
|
||
|
a = str_get(x, 0)
|
||
|
b = str_get(x, 1)
|
||
|
c = str_get(x, 2)
|
||
|
print(a)
|
||
|
print(b)
|
||
|
print(c)
|