Python Forum
Invoking function in if else statement, not working!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invoking function in if else statement, not working!
#3
(May-30-2019, 06:54 PM)SheeppOSU Wrote: You may have to close the file at the end
filename.close()
No, he does not - with operator guarantees closing of the file
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: Invoking function in if else statement, not working! - by volcano63 - May-30-2019, 06:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information Is it possible to multi line a Basic Function Construct line statement? If so how? BrandonKastning 7 451 May-23-2024, 03:02 PM
Last Post: deanhystad
  Excel isnt working properly after python function is started IchNar 2 441 May-01-2024, 06:43 PM
Last Post: IchNar
  invoking python in Terminal Euler 2 725 Aug-25-2023, 06:17 AM
Last Post: perfringo
Shocked kindly support with this dropna function not working gheevarpaulosejobs 2 804 Jul-24-2023, 03:41 PM
Last Post: deanhystad
Question If, elif, and else statement not working PickleScripts 3 1,003 Mar-30-2023, 02:53 PM
Last Post: PickleScripts
  If statement not working correctly? MrKnd94 2 904 Nov-16-2022, 02:49 AM
Last Post: deanhystad
Exclamation Function Not Working Alivegamer 7 2,017 Jul-19-2022, 01:03 PM
Last Post: deanhystad
  try function working on PC but not raspberry pi AnotherSam 1 1,634 Oct-11-2021, 04:51 AM
Last Post: bowlofred
  How to invoke a function with return statement in list comprehension? maiya 4 3,034 Jul-17-2021, 04:30 PM
Last Post: maiya
  If Statement not working...Why? Milfredo 2 2,291 Oct-17-2020, 03:23 AM
Last Post: Milfredo

Forum Jump:

User Panel Messages

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