May-13-2018, 03:59 PM
Hi
I am trying to print this word output : s1 is today is a sunny
if i input this sentence "Today is a sunny day, let go to picnic"
I am unable to print the word "S1 is". I tried to use print ("s1 is" + str((s1[0:4]))
but meet error.
I am trying to print this word output : s1 is today is a sunny
if i input this sentence "Today is a sunny day, let go to picnic"
I am unable to print the word "S1 is". I tried to use print ("s1 is" + str((s1[0:4]))
but meet error.
s1 = input("Enter 3 random strings, separated by commas:") s1 = s1.split(',') print (s1[0:4])Appreciate for all advice. Thank you!