Skip to main content
1 vote

pset7 I can't use usd() and have a problem with datetime method

1)for time stamp you could use this.. from time import gmtime,strftime .... time=strftime("%Y-%m-%d %H:%M:%S", gmtime()) ... output will look like this.. 2017-12-28 09:40:20 now you ...
shaistha's user avatar
  • 117
1 vote
Accepted

Final project: builtins.NameError NameError: name 'usd' is not defined

In pset7, the usd function is included in helpers.py and then you import helpers. If you want to use it here, you could simply include the function in your code: def usd(value): """Formats value as ...
curiouskiwi's user avatar
  • 18.7k

Only top scored, non community-wiki answers of a minimum length are eligible