Call Us

Home / Blog / Interview Questions / Python Strings Interview questions and Answers

Python Strings Interview questions and Answers

  • February 17, 2024
  • 9248
  • 91
Author Images

Meet the Author : Mr. Bharani Kumar

Bharani Kumar Depuru is a well known IT personality from Hyderabad. He is the Founder and Director of AiSPRY and 360DigiTMG. Bharani Kumar is an IIT and ISB alumni with more than 18+ years of experience, he held prominent positions in the IT elites like HSBC, ITC Infotech, Infosys, and Deloitte. He is a prevalent IT consultant specializing in Industrial Revolution 4.0 implementation, Data Analytics practice setup, Artificial Intelligence, Big Data Analytics, Industrial IoT, Business Intelligence and Business Management. Bharani Kumar is also the chief trainer at 360DigiTMG with more than Ten years of experience and has been making the IT transition journey easy for his students. 360DigiTMG is at the forefront of delivering quality education, thereby bridging the gap between academia and industry.

Read More >
  • What will be the output of below python code? str = "Information" print(str[1:8])

    • a) format
    • b) formatio
    • c) orma
    • d) ormat

    Answer - a) format

    The concept of slicing is used in this question. In string slicing, the output is the substring starting from the first given index position i.e 2 to one less than the second given index position i.e.(8-1=7) of the given string str1. Hence, the output will be "format".

 

Navigate to Address

360DigiTMG - Data Science, Data Scientist Course Training in Bangalore

No 23, 2nd Floor, 9th Main Rd, 22nd Cross Rd, 7th Sector, HSR Layout, Bengaluru, Karnataka 560102

+91-9989994319
1800-212-654-321

Get Direction: Data Science Course

What stood out most was the programme's practical and structured approach to AI adoption. The industry-specific examples, combined with clear frameworks for evaluating feasibility and designing solutions, made the learning highly relevant to our business.
Royan Lewis · Commercial Manager, Bahwan IT
What stood out most was the trainer's simple way of explaining Data Science and GenAI, and showing us different AI tools that I had not used before. It made me realise how useful these tools can be in our daily work.
Mohd Sharil Bin Razali · Researcher, JPPH
Read Success Stories Read
Success Stories
Make an Enquiry