Update py_common.py (#143)

This commit is contained in:
Nicholas (Nick) Kruzan 2023-02-12 06:20:42 -06:00 committed by GitHub
parent 66c29840b0
commit 0d7a310007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ def squawk(binstr: str) -> str:
binstr (String): 13 bits binary string
Returns:
int: altitude in ft
string: squawk code
"""
if len(binstr) != 13 or not set(binstr).issubset(set("01")):