Partb Python
Partb Python
1.0 Rationale
The provided Python code facilitates the generation of random passwords with
customizable lengths and character sets. It prompts users to input the desired password
length and choose from digits, letters, and special characters for the password's
composition. The code ensures randomness by utilizing Python's built-in `random` module,
which selects characters from the specified character set. This approach enhances password
security by creating unpredictable and complex passwords. Additionally, the interactive
menu-driven interface enhances user experience and intuitiveness. With no external
dependencies, the code remains lightweight and portable. Overall, it offers a convenient
and flexible solution for generating strong and secure passwords tailored to individual
preferences.
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx
4.0 Literature Review
o The provided Python code offers a simplistic yet effective solution for generating random
passwords with customizable lengths and character sets. It demonstrates an understanding
of fundamental programming concepts and leverages Python's built-in capabilities to
achieve its objective.
o The code's strength lies in its interactive nature, which guides users through the password
generation process by prompting them to input the desired length and select from various
character sets. This interactive approach enhances user experience and ensures that the
generated passwords meet specific requirements.
o However, the code could benefit from additional error handling to address potential user
input errors or edge cases. For instance, incorporating validation checks to ensure that the
user enters a valid length for the password and handles invalid menu selections gracefully
would enhance the robustness of the program.
o Overall, the code serves its purpose well by providing a straightforward and accessible
solution for generating random passwords. With minor enhancements to error handling and
user feedback, it could further improve its usability and reliability.
First of all we collected the information which is required for our micro project
from internet facilities, reference books and our subject teacher. We used Google and Wikipedia
facilities for collecting necessary information. We searched information about how to build
online medical store shopping system . During the process, we searched information about
Medical store and tablets mans which types of tablet are daily uses for customer those tablets are
stocked are big. It help the customer to find their tablets easily on online . It solved our
difficulties to complete the project. Then we gathered and analyzed all the information. And we
make chart related to all this information.
Passwords are a means by which a user proves that they are authorized to use a device. It is
important that passwords must be long and complex. It should contain at least more than ten
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx
characters with a combination of characters such as percent (%), commas(,), and parentheses, as
well as lower-case and upper-case alphabets and numbers. Here we will create a random
password using Python code.
string – For accessing string constants. The ones we would need are –
3 Reference book
# import modules
import string
import random
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx
s3 = list(string.digits)
s4 = list(string.punctuation)
try:
characters_number = int(user_input)
if characters_number < 8:
else:
break
except:
for x in range(part1):
result.append(s1[x])
result.append(s2[x])
for x in range(part2):
result.append(s3[x])
result.append(s4[x])
# shuffle result
random.shuffle(result)
# join result
password = "".join(result)
print("Strong Password: ", password)
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx
9.0 Skill Developed / Learning outcome of this Micro-Project
• Technical Proficiency: Engaging with coding exercises, projects, and challenges helps
individuals develop technical proficiency in programming languages, algorithms, and data
structures.
• Continuous Learning and Growth: Embracing a growth mindset and actively seeking out
new coding challenges, technologies, and tools fosters continuous learning and personal
growth, enabling individuals to stay updated and adaptable in a rapidly evolving tech
landscape.
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx
• Usability: With its menu-driven approach, the code simplifies the password generation
process, making it accessible even to users with minimal programming knowledge.
• Flexibility: Users have the flexibility to choose the length and composition of the generated
passwords, allowing for customization based on specific requirements or security policies.
• Efficiency: The code efficiently utilizes built-in Python modules (string and random),
eliminating the need for external dependencies and ensuring portability across different
environments.
• Documentation and Clarity: While concise, the code is well-commented and clear,
enhancing readability and understanding for both users and developers.
• Error Handling: Although rudimentary, the code could benefit from additional error
handling mechanisms to address potential user input errors or edge cases, ensuring
robustness and reliability.
**************
C:\Users\LENOVO\Desktop\In-plantTrainingFormats\Assessment_Manual_25thMay.docx