Python - Variables and Dynamic Typing
How can you modify this code to check if
val is either a string or a list using type()?if type(val) == str:
print("String")