mljar / piece-of-code

🍰 Coding is piece of cake
https://mljar.com
Other
2 stars 0 forks source link

Piece of code -> python -> Time delay - fails #32

Closed a-szulc closed 4 months ago

a-szulc commented 4 months ago

Fails because time is not imported

error:

```python
NameError
name 'time' is not defined
```

traceback:

```python
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[2], line 2
      1 # start delay
----> 2 time.sleep(3)

NameError: name 'time' is not defined
```
pplonski commented 4 months ago

Fixed.