1 Import datetime 2 Today datetime.datetime.today = () # date of the day 3 for i in the Range (3 ): 4 username = the INPUT ( " Please enter your name: " ) 5 is available for purchase = ' Welcome to [% s] Login , today's date is S% ' % (username, today) . 6 Print (available for purchase)
1 Import datetime 2 Today datetime.datetime.today = () # date of the day 3 for i in the Range (3 ): 4 username = the INPUT ( " Please enter your name: " ) 5 Age = int (the INPUT ( " Please enter your age: " )) 6 score = float (the iNPUT ( " Please enter your score " )) 7 # is available for purchase = 'Welcome to [% s] login, today's date is% s'% (username, today) 8 is available for purchase = ' Welcome to [% s] login, age% d, the results are .2f% ' % (username, Age, score) 9 print(welcome)