Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55c9003

Browse files
committedJul 14, 2023
[Chore]: Add task two
1 parent 25e62ee commit 55c9003

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
#!/usr/bin/env python3
2+
3+
"""
4+
Module to generate random numbers as well
5+
"""
6+
7+
8+
from typing import List
9+
async_generator = __import__('0-async_generator').async_generator
10+
11+
12+
return_type = List[float]
13+
14+
15+
async def async_comprehension() -> return_type:
16+
"""
17+
Returns some 10 random numbers based on the
18+
other function defined in the previous module
19+
"""
20+
return [num async for num in async_generator()]

0 commit comments

Comments
 (0)
Please sign in to comment.