Python Forum
Input values and write csv
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input values and write csv
#1
Hi!
New to Python and would like advice if Im on the right track.

What I would like to achive is.
Write a program to let the user input two values, First value is "Price for weekdays hours 06-21" and the other value "Price for all other days and hours".
Depending on the month the user run the program it should pick up current month and days and then write the information to a csv file.
The expected output below where the price 2,77 is entered for weekdays hours 06-21.
04.03.2021;0;0;0;;0;0;0;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;0;0;0
05.03.2021;0;0;0;;0;0;0;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;2,77;0;0;0
06.03.2021;0;0;0;;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0
07.03.2021;0;0;0;;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0

I started to use tkinter to let user add values, is this the best way? Any suggestions are more than welcome! :)
Reply
#2
Tkinter is a GUI, or graphical user interface. Easier would be to use a console interface and just ask the questions. Recommend not tackling Tkinter until you need to
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Difficulty when trying to call all the input values extricate 2 1,907 Jun-05-2020, 09:36 AM
Last Post: pyzyx3qwerty

Forum Jump:

User Panel Messages

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