Sep-05-2018, 03:49 PM
replace
msg = "Hello, my name is", name, lastname, ", I am a", age, "year old", gender, ". I live in", country, adress, ". Thank you for reading my E-mail."with
msg = f"Hello, my name is {name} {lastname}. I am a {age} year old {gender}. I live in {country} {adress}. Thank you for reading my E-mail."At the moment msg is a tuple. Also learn to use str.format() method or f-strings.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs