str1 = 'hello javatpoint' #string str1 str2 = 'how are you' #string str2 print (str1[0:2]) #printing first two character using slice operator print (str1[4]) #printing 4th character of the string print (str1*2) #printing the string twice print (str1 + str2) #printing the ...
If you have enough time, check out the interview questions based on your domain on Interviewbit. They have interview questions for Data Science, Machine Learning, Cloud, Node, etc. which can be helpful. If you want extra questions or resources, check out:Striver Code SheetorLove Babbar Road...