Assume that two variables, vara and varb, are assigned values, either numbers or strings.. write a piece of python code that prints out one of the following messages: . choices: a.\"string involved\" if either vara or varb are strings. b.\"bigger\" if vara is larger than varb. c. \"equal\" if vara is equal to varb.
To answer this programming question:
if isinstance(varA, str) or isinstance(varB, str):
return "string involved"
elif varA > varB:
elif varA < varB:
I am hoping that these answers have satisfied your queries and it will be able to help you in your endeavors, and if you would like, feel free to ask another question.
if strA or strB == True: print("String involved.")
elif varA > varB: print("bigger")
elif varA == varB: print("equal")
elif varA < varB: print("smaller")