Printing Author and Date Information with Multiple Print Functions in Python

Using the four print() function (one line - one function) print the following text:

========================================
author: johnsmith@sample.com
date: 01-01-2021
========================================

========================================
author: johnsmith@sample.com
date: 01-01-2021
========================================

Solutions

Solution: 1

equal = '='*40

print(equal)
print("author: johnsmith@sample.com")
print("date: 01-01-2021")
print(equal)