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.
39 lines
671 B
39 lines
671 B
4 years ago
|
count:int = 0
|
||
|
|
||
|
def foo(s: str) -> int:
|
||
|
return len(s)
|
||
|
|
||
|
class bar(object):
|
||
|
p: bool = True
|
||
|
|
||
|
def baz(self:"bar", xx: [int]) -> str:
|
||
|
global count
|
||
|
x:int = 0
|
||
|
y:int = 1
|
||
|
|
||
|
def qux(y: int) -> object:
|
||
|
nonlocal x
|
||
|
if x > y:
|
||
|
x = -1
|
||
|
|
||
|
for x in xx:
|
||
|
self.p = x == 2
|
||
|
|
||
|
qux(0) # Yay! ChocoPy
|
||
|
|
||
|
count = count + 1
|
||
|
|
||
|
while x <= 0:
|
||
|
if self.p:
|
||
|
xx[0] = xx[1]
|
||
|
self.p = not self.p
|
||
|
x = x + 1
|
||
|
elif foo("Long"[0]) == 1:
|
||
|
return self is None
|
||
|
|
||
|
return "Nope"
|
||
|
|
||
|
print(bar().baz([1,2]))
|
||
|
|
||
|
|