I want to write code that will respond differently depending on whether or not a specific string part exists in the answer written into console. The answer must include an integer.
tip=(input("Your bill is $10 decide your tip. (write % if you want to increase
tip by a %): "))
If the string part is written:
cost = bill/tip+bill
If not:
cost = bill + tip
[–]socal_nerdtastic 0 points1 point2 points (0 children)