Charles
04/04/2023, 6:49 AM@asset
def get_asset_numbers() -> int:
a_list = [1, 2, 3]
for i in a_list:
yeild i
@asset
def process_number(get_asset_numbers: int):
print(f"Num: {input}")
return input
The above should print:
Num: 1
Num: 2
Num: 3
Is the right way to do this to have a function in the middle that calls process_number
in a forloop?Charles
04/04/2023, 10:51 AMNum: 1
and then stops.sandy
04/04/2023, 3:52 PMsandy
04/04/2023, 3:53 PMCharles
04/04/2023, 4:13 PMsandy
04/04/2023, 8:19 PM