We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e62ee commit 55c9003Copy full SHA for 55c9003
0x02-python_async_comprehension/1-async_comprehension.py
@@ -1 +1,20 @@
1
#!/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