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.
ChocoPy/pa3-tests/core/str_cat_2.py

20 lines
253 B

a:str = "no"
b:str = "o"
c:str = ""
d:str = ""
e:str = ""
def cat2(a:str, b:str) -> str:
return a + b
def cat3(a:str, b:str, c:str) -> str:
return a + b + c
c = cat2(b, a)
d = cat2(a, a)
e = cat3(a, b, cat2(b, b))
print(c)
print(d)
print(e)