Python Forum
Writting to file from if/else statement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writting to file from if/else statement
#2
If you run your code today it basically does:

"Is 19 in 20/11/2019?" --> True --> Write the file.

"Is not 19 in 20/11/2019?" --> False --> Does not write the file.

So it makes sense that it does not write it when you add the NOT as you can find 19 in the year of "expires".
Reply


Messages In This Thread
RE: Writting to file from if/else statement - by baquerik - Nov-19-2019, 10:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  writting python output to a csv file drifterf 1 1,741 Jul-19-2019, 04:07 AM
Last Post: micseydel
  problems with writting a text file sunny 6 3,854 Feb-24-2019, 10:52 PM
Last Post: Larz60+
  Writting system comand into a file. Mike Ru 2 3,802 May-29-2017, 12:40 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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