Can anyone give me advice on writing in files. This is in python 3.3. This error message just keeps on popping up.
Traceback (most recent call last):Line 28, in file.write(name_1,"and",name_2,"have a",loveness_2,"percent chance of falling in love") TypeError: write() takes exactly 1 argument (6 given)
And my code is this:
if vowels_1 > vowels_2:
loveness = vowels_2/vowels_1
loveness_2 = loveness * 100
print("It is ",loveness_2,"% possible of you falling in love")
print("*********************************************")
file.write("*********************************************")
file.write(name_1,"and",name_2,"have a",loveness_2,"percent chance of
falling in love")