+ 1
how to fix a problem with something not reading right but it was earlier
TypeError: Can't convert 'NoneType' object to str implicitly https://code.sololearn.com/cxEvusPPq00J/#py ^------ where the code problem is at any help is highly appreciated
2 Answers
+ 7
*This is a different error you may have made after fixing what @need.. said.
Line 99-105.
error:
if x = True:
correct:
if x == True;
== compares if the values are equal, = sets the value.
0
hi Matthew,
cute project that you are working on.
The error occurs because the variable 'marage' does not contain a string.
This is because the function 'marriage_name' has no return value.
Just let the function return the name. Then it should work as intended.
See this snippet for solution:
https://code.sololearn.com/c1F2Yf3gUtp7/?ref=app