I wanted to call a string from another class and compare whether the string value match from the define string in the variable. But when runing the code it doesn't compare properly.Thanks for the reply.
class TasteMaker:
print(" Nice! Now your maggie is half cooked, it's time to add the taste maker. "
" \n Taste maker is the flavour of maggie and it is recommended to add it"
" but some people keep it simple without adding it. "
"\n So want to add or not add the taste maker. " " \n A.add \n B.don't add ")
time.sleep(3)
taste = input(" >>> ").lower()
class Time:
minutes = TasteMaker.taste
addY = ['add', 'A']
if minutes == addY:
print("Nice Choice!")
time.sleep(2)
print("\n Now for the final touch. The last and the first step is the most crucial step in cooking."
" Chose whether to keep in for full 10min, 15min or 20min"
"\n A.10min"
"\n B.15min"
"\n C.20min")
final = input(" >>> ")
else:
print(" Ok! You chose not to add the taste maker.")
time.sleep(2)
print("\n Now for the final touch. The last and the first step is the most crucial step in cooking."
" Chose whether to keep in for full 10min, 15min or 20min"
"\n A.10min"
"\n B.15min"
"\n C.20min")
final = input(" >>> ")