tuple dictionary what is the output of print str if str 'hello world!'it will print complete string output would be hello worldwhat is the output of print str[ if str 'hello world!'it will print first character of the string output would be what is the output of print str[ : if str 'hello world!'it will print characters starting from rd to th output would be llo what is the output of print str[ :if str 'hello world!'it will print characters starting from rd character output would be llo worldwhat is the output of print str if str 'hello world!'it will print string two times output would be hello world!hello worldwhat is the output of print str "testif str 'hello world!'it will print concatenated string output would be hello world!test what is the output of print list if list 'abcd' 'john' ]it will print complete list output would be ['abcd' 'john' what is the output of print list[ if list 'abcd' 'john' ]it will print first element of the list output would be abcd what is the output of print list[ : if list 'abcd' 'john' ]it will print elements starting from nd till rd output would be [ what is the output of print list[ :if list 'abcd' 'john' ]it will print elements starting from rd element output would be [ 'john' what is the output of print tinylist if tinylist [ 'john']it will print list two times output would be [ 'john' 'john'what is the output of print list tinylist if list 'abcd' 'john' and tinylist [ 'john']it will print concatenated lists output would be ['abcd' 'john' 'john'what are tuples in pythona tuple is another sequence data type that is similar to the list tuple consists of number of values separated by commas unlike listshowevertuples are enclosed within parentheses what is the difference between tuples and lists in pythonthe main differences between lists and tuples are lists are enclosed in brackets [and their elements and size can be changedwhile tuples are enclosed in parentheses and cannot be updated tuples can be thought of as read-only lists what is the output of print tuple if tuple abcd john