0
How do you print dates in python?
3 Respuestas
+ 7
Muhtasim ,
here is a short tutorial how to use date information in python:
using date and time information in python is handled like this:
> import datetime as shown in the code
> create a datetime object by reading a string that will be parsed by .strptime()
> then you can output the information from the datetime object using .strftime()
>> for both of the mentioned methods we need format codes:
#you can find the format codes here:
#https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
https://code.sololearn.com/cQa64lBDQjL2/?ref=app
+ 2
From search :
https://www.sololearn.com/discuss/1756459/?ref=app
https://www.sololearn.com/discuss/1354208/?ref=app
https://www.sololearn.com/discuss/1698094/?ref=app
Hope it helps enough.. You can find more from search...
+ 1
print('🌴🌴🌴')