Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Of course that does not make the IT department of most colleges and businesses happy. They still want you to have at least one capital

image text in transcribed
Of course that does not make the IT department of most colleges and businesses happy. They still want you to have at least one capital letter and a number in your password. We'll learn more about this in a couple of chapters but it is easy to replace parts of a string with a different string using the replace method. For example "pool".replace('o', 'e') gives us peel Once you have your final password you can replace some letters with number substitutions. For example its common to replace the letter I with the number 1 or the letter e with the number 3 or the o with a 0. You can get creative. You can also easily capitalize a word using "myword".capitalize() Once you feel confident that you understand the code below you can use this activecode to make your password comply with standard procedures to include special characters. Save & Run Load History Show CodeLens 1 word = "pool" 2 word - word.replace('o', 'e') 3 print (word) 4 word - word.capitalize() 5 print(word)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions