Which of the following is the correct output for print(Tuple[1]) if Tuple = ("A","B","C","D")

BThe answer is B as python always starts lists and tuples from 0 so A=0 B=1

Answered by Maximillian C. Python tutor

592 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

How do I define a function in Python?


Whats is the difference between a function and a procedure?


What is the difference between a cycle "if" and "while"?


Print "Hello World!" ten times without typing (or pasting) the print function more than once


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy