+ 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 Antwort
+ 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