aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java and Python Programming Fundamentals Quiz
  • x=[1,2,3,4,5] x[3:3]='sagar' print x
Multiple choice technology programming languages

x=[1,2,3,4,5] x[3:3]='sagar' print x

  1. error

  2. [1,2,3,4,'sagar',5]

  3. [1,2,3,'sagar']

  4. none

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • x=[1,2,3,4,5] print x[-1]
  • a=['a','b'] x=[a,'y']
  • name=[1]*3
  • print type([1,2]).The output is:
  • names =['Amir', 'Barry', 'Chales', 'Dao'] print names [-1][-1] The output is:
  • A = {1,2,3,4}, B = {3,5,6,7}, C = {1,3,7,8} Find: (A U B) n C
  • foo = {1:'1', 2:'2', 3:'3'} del foo[1] foo[1] = '10' del foo[2] print len(foo)
  • A = {1,2,3,4}, B = {2,4,6,8}, C = {3,4,5,6} Find: (A n B) U C
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy