I am still pretty new to Python and learning! I searched around and some postings seem too complex for me at this time. Wondering why the car_brandp below is not joining with "and quite expensive" after the else function initiates? The first else line prints fine but it seems like I can't put that message as a variable?
I got the None Type error
car_brand =input ("What is the best car brand? ")
if car_brand == ("Range Rover"):
print (car_brand + " is the best car brand ever!")
else:
car_brandp = print (car_brand + " is just personal taste..")
print (car_brandp + " and quite expensive...")
printreturnsNone.car_brandp = print()will always causecar_brandpto be Noneprintis used to print out to standard output. Here you need an assignment to a variable.car_brandp = car_brand + " is just personal taste..".f'{car_brand} is just personal taste..'(also available in multi-line version that won't render properly in a comment)