0
How to Python3
How to compare if variable is a string? like: n = input() if n == (string): print("error string") i dont know the comparison of the placeholder (string)
2 ответов
+ 3
Try:
if isinstance(n, str):
print("error string")
+ 1
Qasem Thanks!