python program or command to print unix command output and normal text in one line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

python program or command to print unix command output and normal text in one line

Unix command:: date Normal text :: today’s date is :: Output should be as::: “today’s date is :: (output of date)”

9th Jan 2018, 7:21 AM
Gara
Gara - avatar
1 Answer
+ 1
import os print("Today's date is {}.".format (os.system("date")))
9th Jan 2018, 6:14 PM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar