Day2 3.6.2 Shell a Replace Assignment py CAUhers/czngesktop/Replace Assignment p
ID: 3603139 • Letter: D
Question
Day2 3.6.2 Shell a Replace Assignment py CAUhers/czngesktop/Replace Assignment p.- Shell Debug Options Window Help 6.2 (v3.6.2 5t 83365. Jul 8 2017. 04 57:36) MSC v. 1900 64 bit (AND64)r File Edit Format Run Options Window Help sport re pyright, credits" or licenseO for sore infornation. RESTART: C:/Users/CZ/Desktop/Replace Assignment. py attempt1+ re.rub (r*t.tlxh+l.. print (atteapt !) , coded), replace(.c','e. ), replaceri.,' k (nost recent call lart) C: /Users/CZ/Desktop/Replace Asignnent.py line 1. in nodule) enpt1, - re. sub ( glxstl.. coded).replace'se).replaceT. ce or nane re in not defined RESTART: C: /Users/CZ/Desktop/Replace Assignment. py ack (nost recent eall last) C: /Users/CZ/Deskctop/Replace Angignent.py" line, 3, in,Explanation / Answer
import re
coded = " your string goes here"
coded = re.sub(r"chararcter set", "replacing set", coded)
coded = coded.replace("g", "e");
...
print(coded)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.