Python Forum
Program writing excel rfile with randomnized input
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program writing excel rfile with randomnized input
#2
I'm not sure what the issue is, but I don't think your results have any values at all. print() doesn't return a value, so SlachtofferAchternaam = print(random.choice(tableAchternamen)) would mean SlachtofferAchternaam would always == None. Which is probably not what you want.

Also, you don't really need x += 1. The for loop will do that for you :p
Reply


Messages In This Thread
RE: Program writing excel rfile with randomnized input - by nilamo - Dec-08-2016, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Results of this program in an excel file eisamabodian 1 1,625 Feb-11-2022, 03:18 PM
Last Post: snippsat
  Need Help writing data into Excel format ajitnayak87 8 2,621 Feb-04-2022, 03:00 AM
Last Post: Jeff_t
  Writing on an lcd display gives problems to the program Idontknowany 1 1,451 Nov-15-2021, 10:46 PM
Last Post: Larz60+
  I am writing a car rental program on python. In this function I am trying to modify aboo 2 2,830 Aug-05-2021, 06:00 PM
Last Post: deanhystad
Smile Set 'Time' format cell when writing data to excel and not 'custom' limors 3 6,425 Mar-29-2021, 09:36 PM
Last Post: Larz60+
  Writing to existing excel sheet jksvend 0 1,979 Oct-12-2020, 11:19 AM
Last Post: jksvend
  How can I speed up my openpyxl program reading Excel .xlsx files? deac33 0 3,446 May-04-2020, 08:02 PM
Last Post: deac33
  Keyboard Module Python - Suppress input while writing to window ppel123 0 2,852 Apr-08-2020, 02:51 PM
Last Post: ppel123
  Python program for excel tummpy06 2 1,736 Dec-18-2019, 12:21 PM
Last Post: jefsummers
  How to write a script to execute a program need passing additional input? larkypython 2 2,633 Nov-23-2019, 04:38 AM
Last Post: larkypython

Forum Jump:

User Panel Messages

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