Скачать
How to Call Functions from Another Script in Python (Spyder Tutorial)
Автор: Md Arifur Rahman Khandoker
Загружено: 2025-02-23
Просмотров: 99
Описание:
Code:
#Script-1:
def tester(a,b):
return a+b
#Save the code as test_code.py
#Open a new script and copy and paste the ''Script-2'' to call the function defined in script-1
#Script-2:
from test_code import tester
#a=2, b=3, a+b=?
result=tester(2,3)
print(result)

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: