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.
|
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)
|