0

What does this type error means:TypeError: string is expected or bytes like object

import re Id =input() if re.search(r"[A-Z][A-Z][0-9][0-9]

quot;,id): print("searching") else: print("wrong format")

30th Mar 2022, 9:16 PM
monsuru omotoso
2 Answers
+ 4
id is a inbuilt function and your variable is Id capital I but using id. not matching.. Correct the typo. Add proper identation
30th Mar 2022, 9:46 PM
Jayakrishna šŸ‡®šŸ‡³
0
Thank very much
26th Apr 2022, 8:58 PM
monsuru omotoso