Internship Report Me 1
Internship Report Me 1
Internship Report Me 1
Fulfillment of the
Requirements for the
Degree of
2
It gives us a great sense of pleasure to present the report of the B.Tech
internship/summer training undertaken during . We owe special debt
of gratitude to our guide for his constant support and guidance
throughoutcourseofourwork.Hissincerity,thoroughnessandperseverancehavebeena
constantsourceofinspirationforus.Itis onlyhis cognizantefforts
that ourendeavors havebeenlightoftheday.
Wealsotaketheopportunitytoacknowledgethecontributionof
forhisfulsupportandassistanceduringthedevelopmentoftheinternship/summer
training.
Wealsodonotliketomisstheopportunitytoacknowledgethecontributio
nofallfaculty
membersofthedepartmentfortheirassistanceandcooperationduringthedev
elopment of myinternship/
tran
in
ig. Last but not theleast, we acknowledge our friends for their
contributionsinthecompletionoftheinternship/summertraining.
3
The CodSoft Python Programming Internship provides hands-on
experience in designing and implementing Python-based projects. This
internship focuses on developing practical coding skills through three
foundational tasks:
Calculator:
A simple calculator application capable of performing basic arithmetic
operations. Users are prompted to input two numbers and select an
operation (addition, subtraction, multiplication, or division). The program
computes the result and displays it to the user, demonstrating foundational
programming and user interaction techniques.
Password Generator:
This project involves creating a password generator that produces strong,
random passwords based on user-specified criteria. Users input the
desired password length, and the application generates a secure password
by combining random characters, including letters, numbers, and symbols.
The tool emphasizes Python’s randomization capabilities and addresses
real-world needs for secure password generation.
Rock-Paper-Scissors Game:
A classic interactive game where users compete against the computer. The
program prompts the user to select rock, paper, or scissors, while the
computer makes a random choice. Game logic determines the outcome
based on the standard rules, and results are displayed to the user.
Optional features include score tracking and a replay option, enhancing
user engagement. This task introduces participants to conditional logic,
random number generation, and iterative programming.
4
1. Overview of the
Internship
2. Objectives
3. Task Description
4. Features and
Functionality
5. Steps to Implement
6. Example Workflow
1. Input 3
2. Task
1. Output
Description
2. Features and
Functionality
3. Steps to Implement
4. Example Use Case
1. Input
2. Output 4
1. Task Description
2. Features and
Functionality
3. Steps to Implement
4. Example Game Flow
1. User
2. Computer
3. Output 5
1. Programming Concepts
Practiced
2. Real-World Applications 6
6.1 Sample Code for
Tasks 7
1. Summary of Tasks
2. Future Enhancements and
Applications
5
The CodSoft Python Programming Internship is a project-based
learning opportunity designed to help participants gain practical
experience in Python programming by completing real-world tasks.
8
Create a simple calculator application capable of performing
basic arithmetic operations (addition, subtraction,
multiplication, and division).
Input:
First Number:
10
Second
Number: 5
Operation: *
Output:
Result: 50
9
Design a password generator application that produces
secure, random passwords based on user preferences.
Input:
Password Length: 10
Output: Generated Password: J8!
xY@#2Kd
10
Develop a text-based Rock-Paper-Scissors game where the user
competes against the computer.
User: Rock
Computer: Scissors
Output:
"You chose Rock. The computer chose
Scissors."
"You win! Rock beats Scissors."
11
Input/output handling.
Conditional logic and loops.
Randomization using Python libraries.
Structuring code for readability and functionality.
Real-World Applications:
12
def add(x, y):
return x + y
def
subtract(x,
y): return x
-y
def
multiply(x,
y): return x
*y
def
divide(x,
y): if y ==
0:
by zero" return x / y
def main():
print("Simple
13
Calculator")
print("Select
try:
'3', '4']:
brea
else:
try:
")) break
except ValueError:
result =
add(num1, num2)
operation =
"Addition"
result =
subtract(num1, num2)
14
operation =
"Subtraction"
result = divide(num1, num2)
operation = "Division"
main ":
main()
import random
import string
def
generate_password(len
gth): lower =
string.ascii_lowercase
upper =
string.ascii_uppercase
digits = string.digits
symbols =
string.punctuation
all_characters = lower +
upper + digits +
symbols
def main():
while True:
try:
number.") continue
print("Invalid input. Please enter a
number.")
password =
generate_password(length)
password)
if name == "
def get_computer_choice():
"scissors"] return
random.choice(choices)
def determine_winner(user_choice,
computer_choice): if user_choice ==
computer_choice:
return "You
win!" else:
return "You
lose!"
def display_result(user_choice,
print(f"Computer chose:
user_score = 0
computer_scor
e = 0 while
True:
"paper", "scissors"]:
computer_choice =
get_computer_choice()
result = determine_winner(user_choice,
computer_choice) display_result(user_choice,
computer_choice, result)
if result == "You
win!":
user_score +=
lose!":
computer_score
+= 1
if play_again != "yes":
17
print("Thanks for
playing!") break
Participants implemented a calculator, a password
generator, and a Rock- Paper-Scissors game, each
highlighting key Python concepts.
18