I have a string “contact@dezyre.com”. Which string function can be used to split the string into two different strings “contact@dezyre” and “com” ?



I have a string “contact@dezyre.com”. Which string function can be used to split the str..

Answer / Randhir Prasad Singh

The string function that can be used is split(). In Python, you can use split("@") to split a string at the @ symbol. This will return a list containing the two parts of the email address.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Science Interview Questions

Explain each data visualization in detail?

1 Answers  


How will you find the second largest element in a Binary Search tree ?

1 Answers   LinkedIn,


Define the term cross-validation

1 Answers  


What is market basket analysis?

1 Answers  


Can you define data reduction?

1 Answers  


What are the types of biases that can occur during sampling?

1 Answers  


Differentiate between univariate, bivariate and multivariate analysis?

1 Answers  


What is meant by feature vectors?

1 Answers  


What is k-means?

1 Answers  


Which package is used to do data import in r and python?

1 Answers  


Can you explain data cleansing?

1 Answers  


What is machine learning? What is the difference between supervised and unsupervised methods?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)