Answer to Question #319172 in Python for ramesh

Question #319172

your are given three strings as input. write a program to print first character of each string in python?


1
Expert's answer
2022-03-27T16:05:16-0400
input1 = "string"
input2 = "input"
input3 = "yes"

_input = [input1, input2, input3]

for x in _input:
    print(x[0])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS