You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to save the result of each function into a new variable in python but the functions returns only a print and None object.
I cannot save it into a new variable in my code script.
For example I used the mysp.mysppaus() and the return is:
[]
number_of_pauses= 73
I would like to save it into a variable or get it into a dictionary with key = number_of_pauses and value = 73.
I am using python 3.7.4 on windows.
Thanks.
The text was updated successfully, but these errors were encountered:
To do this I had to modify the function from the myprosody.py file and delete the print statements in the function. Also added a return statement for the number I needed, and added pass after except. Might work for you too!
Thanks for your response @kelseymour I will definitely will do so. The thing is when you want to run a process on the cloud using this library functions you would have to install it to the environment using pip and then we return to the original functions of the library. Would love to know if you have any idea how to solve it.
I wish to save the result of each function into a new variable in python but the functions returns only a print and None object.
I cannot save it into a new variable in my code script.
For example I used the mysp.mysppaus() and the return is:
[]
number_of_pauses= 73
I would like to save it into a variable or get it into a dictionary with key = number_of_pauses and value = 73.
I am using python 3.7.4 on windows.
Thanks.
The text was updated successfully, but these errors were encountered: