Python Forum
How do we print this output?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do we print this output?
#3
Hi

Apologies, The error is unable to use the str( s1[0:4]) in the print even though I have correct parentheses. Output I need is “ s1 is today is sunny day”. I have tried to use another method by assign a variable to contain the split of s1[0:2] and concatenation them in print with “s1 is” but unable to work too.
Appreciate for suggestions. Thanks!
Reply


Messages In This Thread
How do we print this output? - by veve - May-13-2018, 03:59 PM
RE: How do we print this output? - by j.crater - May-13-2018, 04:07 PM
RE: How do we print this output? - by veve - May-14-2018, 12:13 AM
RE: How do we print this output? - by wavic - May-14-2018, 04:30 AM
RE: How do we print this output? - by veve - May-14-2018, 07:40 AM
RE: How do we print this output? - by wavic - May-14-2018, 08:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Print not appearing in output dgizzly 1 1,314 Oct-14-2022, 09:55 PM
Last Post: rob101
  Read text file, process data and print specific output Happythankyoumoreplease 3 3,012 Feb-20-2020, 12:19 PM
Last Post: jefsummers
  Need to print the output as follows Mac 2 3,424 Jul-19-2017, 06:52 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020