New course! Every coder should learn Generative AI!
Try a free lesson3 Answers
+ 3
print(input().split()[1])
+ 2
Hints:
โ Get input and act properly when it is empty.
โ Split the input by space.
โ See if there's exactly 3 parts produced by splitting. Notify user for invalid input when there's less than or more than 3 parts resulted by split.
โ Return the second part of the split result.
0
Could u plz help me by giving the codes.!! And Md Sahil we have to get name inputed so we don't have idea about the index!!
Or could u help me with code!!
Thankyou๐๐