{"id":47,"date":"2024-01-05T15:11:29","date_gmt":"2024-01-05T15:11:29","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_carpenter\/?p=47"},"modified":"2024-01-08T14:57:18","modified_gmt":"2024-01-08T14:57:18","slug":"simple-password-generator-using-functions","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_carpenter\/2024\/01\/05\/simple-password-generator-using-functions\/","title":{"rendered":"Simple Password Generator Using Functions"},"content":{"rendered":"\n<p>I made a simple password generator.<\/p>\n\n\n\n<p>It asks for 4 parameters and then uses them to create an easy to remember yet strong password.<\/p>\n\n\n\n<p>Here&#8217;s the code:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>#Generating function<\/p>\n\n\n\n<p>def generate(a, b, c, d,):<\/p>\n\n\n\n<p>&nbsp; &nbsp; print(f&#8221;Password is: {a}{b}{c}{d}&#8221;)<\/p>\n\n\n\n<p>pet = input(&#8220;Enter the name of your favorite pet: &#8220;)<\/p>\n\n\n\n<p>symbol= input(&#8220;Enter your favorite symbol: &#8220;)<\/p>\n\n\n\n<p>food = input(&#8220;Enter your favorite food: &#8220;)<\/p>\n\n\n\n<p>number = input(&#8220;Enter your favorite number: &#8220;)<\/p>\n\n\n\n<p>generate(number, symbol, food, pet,)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I made a simple password generator. It asks for 4 parameters and then uses them to create an easy to remember yet strong password. Here&#8217;s the code: #Generating function def generate(a, b, c, d,): &nbsp; &nbsp; print(f&#8221;Password is: {a}{b}{c}{d}&#8221;) pet = input(&#8220;Enter the name of your favorite pet: &#8220;) symbol= input(&#8220;Enter your favorite symbol: &#8220;) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":3,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/posts\/47\/revisions\/53"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_carpenter\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}