May-29-2024, 03:29 AM
if type(obj) == str: #the name of the obj in your class file declared is here. print('It is a string') else: print('It is not a string.')My picture came out. The codes worked. Stackoverflow codes. It is not a string. But an object or picture file. .jpg. Was the result.
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.