#try to avoid input function
a = [[1,2,3],["hi","hello","rgukt","iiit"],3,"743",(1,24,"world"),[3,2],756,"hello",("abcd",45,-8)]
list = tuple = 0
for i in a:
if type(i) == type([]):
list = list+1
if type(i) == type(()):
tuple = tuple+1
if list > 0:
print("list has a sub list.")
if tuple > 0:
print("list has a tuple.")
Click the run button. Try to avoid input() function.