find type of an element in list python
mylist = ["hello", "world", 1, 2, 9999, "pizza", 42, ["this", "is", "a", "sub list"], -100]
type(mylist[3])
#int
type(mylist[1])
#str
type(mylist[-2])
#list
type(mylist[-2][1])
#str
find type of an element in list python
mylist = ["hello", "world", 1, 2, 9999, "pizza", 42, ["this", "is", "a", "sub list"], -100]
type(mylist[3])
#int
type(mylist[1])
#str
type(mylist[-2])
#list
type(mylist[-2][1])
#str
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us