From d899b156f49ff7e0954ab406760bf4aff0638313 Mon Sep 17 00:00:00 2001 From: Sajid Sarker Date: Sun, 24 Jul 2022 12:36:50 +0430 Subject: [PATCH] Update life_for_two.py to remove type hinting --- 56_Life_for_Two/python/life_for_two.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/56_Life_for_Two/python/life_for_two.py b/56_Life_for_Two/python/life_for_two.py index a4599526..a79be546 100644 --- a/56_Life_for_Two/python/life_for_two.py +++ b/56_Life_for_Two/python/life_for_two.py @@ -109,10 +109,10 @@ def query_player(b) -> None: # Query player for symbol placement coordinates while True: print("X,Y\nXXXXXX\n$$$$$$\n&&&&&&") - a_: List[str] = input("??") - b_: List[str] = input("???") - x_: List[int] = [int(num) for num in a_.split() if num.isdigit()] - y_: List[int] = [int(num) for num in b_.split() if num.isdigit()] + a_ = input("??") + b_ = input("???") + x_ = [int(num) for num in a_.split() if num.isdigit()] + y_ = [int(num) for num in b_.split() if num.isdigit()] x_ = [0] if len(x_) == 0 else x_ y_ = [0] if len(y_) == 0 else y_ gx[b] = y_[0]