Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print
#3
Output:
File "<ipython-input-83-b54c4c9c810b>", line 2 print(f'{predictions_{year}}, {parameters_{year}}, {get_predictions(year, 12)}' ^ SyntaxError: invalid syntax
Hello Thank you for your answer.I've got a error message.
I wanna write a loop basically for different year and execute this at the end of the loop :
predictions_2005, parameters_2005 = get_predictions_each_year(2005, 12)
So if i take more years for example from 2000 to 2008, I don't need to write it few times

Like this : https://cdn1.imggmi.com/uploads/2019/10/...3-full.png
Reply


Messages In This Thread
Print - by kdiba - Oct-11-2019, 11:12 AM
RE: Print - by buran - Oct-11-2019, 11:17 AM
RE: Print - by kdiba - Oct-11-2019, 11:28 AM
RE: Print - by buran - Oct-11-2019, 12:04 PM
RE: Print - by kdiba - Oct-11-2019, 12:17 PM
RE: Print - by buran - Oct-11-2019, 12:26 PM
RE: Print - by kdiba - Oct-11-2019, 12:28 PM
RE: Print - by buran - Oct-11-2019, 12:29 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020