Skip to content

Instantly share code, notes, and snippets.

Working from home

karan jagota karanjagota

Working from home
Block or report user

Report or block karanjagota

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
karanjagota /
Created Jun 10, 2019
gist for my medium blogs
## I am simply creating a list and printing out the type of indivisual elements in the list ..
List = [1,2.0,"Hello World",True,[1,2,3,4,5],{'key':'value'}]
# I am using for in loop because the size of the list is fixed ..
for element in List:
# or you can also use list compreshension
elements = [type(element) for element in List]
You can’t perform that action at this time.