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_cmp.py

18 lines
244 B

a:str = "Hello"
b:str = "World"
c:str = "ChocoPy"
def eq(a:str, b:str) -> bool:
return a == b
def neq(a:str, b:str) -> bool:
return a != b
print(eq(a,a))
print(eq(a,b))
print(neq(a,b))
print(neq(b,b))
print(eq(c,a))
print(neq(c,b))