Yes, you can print variable and string on the same line in Python by using the below-mentioned code:-
print("If there was a birth every 7 second, there would be %d births." % (births))
To know more about this you can have a look at the following video tutorial:-