Question: Python Please! D-Bug has been receiving a lot of scam text messages lately and is tired of not being able to do anything about it.
Python Please! D-Bug has been receiving a lot of scam text messages lately and is tired of not being able to do anything about it.
D-Bug has decided to write a program that wastes the scammer's time but needs your help finishing it. D-Bug gave you this conversation as an example of how he would like the program to behave.


Hi there, what's your name? >>> Peter Hi Peter, I'm working for 5 more minutes, give me one moment, please. Peter, I'm free to talk, what would you like to sell? >>> Ants Ants? Oh, I already have 2 of those. What makes this one different? >>> You can eat them! I'm so sorry, Peter, something just came up, I have to go take care of it right away. Can we continue this tomorrow at 9:00 ? ---- 11 1 """D-Bug's reverse scammer2000"" 2 3 # ask for the scammer's name 4 | 5 # use the length of their name to fake a time 6 "Hi I'm working for more minutes, give me one moment, please." 7 8 # Ask them what they'd like to sell 9 I'm free to talk, what would you like to sell?" 10 11 # for the number of items use the following formula: 12 # add 1 to the absolute value of the difference between the length of 13 # the product string and the length of their name 14 print(f"{product}? Oh, I already have {abs(len(product) - len(name)) + 1} of those.") 15 difference_response input("What makes this one different? ") 16 17 # use the ascii code of the last character in their previous response modulo 24 to obtain the fake hour to 18 "I'm so sorry, something just came up, I have to go take care of it right away. 19 "Can we continue this tomorrow at ---:00?") = 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
