Write a python function to get a string made of its first three characters of a specified string. If the length of the string is less than 3, then return the original string.
Sample function and result:
first_three('ipy') ->ipy
first_three('python') ->pyt
Answers
Answered by
1
Answer:
python. Here we created a variable and assigned it a string value. Note the variable name greeting . It was chosen to .k
Similar questions
Science,
5 months ago
Hindi,
5 months ago
Social Sciences,
5 months ago
Science,
10 months ago
Social Sciences,
10 months ago
English,
1 year ago
Social Sciences,
1 year ago
Accountancy,
1 year ago