LIVE Course for free

Rated by 1 million+ students
Get app now
0 votes
in Computer by (30 points)
5. What will be the output of the given python program? str1 = "welcome" str2 = "to school" Hoel. \( \operatorname{str} 3=\operatorname{str} 1[: 2]+\operatorname{str} 2[\operatorname{len}(\operatorname{str} 2)-2:] \) print(str3)

Please log in or register to answer this question.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.