Quick actions

cmd+k|ctrl+k

Navigation

Languages

Type Control

Snippet info

Language

Python

Visibility

public

Author

abdlkdrgndz

Created

2021-03-31T07:25:19.036731Z

Updated

2021-03-31T07:25:19.036731Z

let = (1,2,3,4)

if isinstance(let, str):
    print('Yeap! Valid variable type.')
else:
    t = type(let)
    print("Not string value. Type is {}".format(t.__name__))
INFO