Pretty much every line of code is incorrect. It looks as if you have been trying to write VB.NET statements with Python expressions. Python is a case sensitive language and all statements and builtin functions use lower case. You also do not need to check the length of
b
, but its value from the previous expression. You also do not need to check if it is greater than 3 (actually should be greater than 2) since if it is not 1 or 2 then it must be greater than 2. So go to
The Python Tutorial — Python 3.10.6 documentation[
^] and study the proper syntax of the language. Then think about what you need to do to correct your code.