You are on page 1of 11

INDUSTRIAL TRAINING INTERNSHIP REPORT

INDUSTRIAL TRAINING
SEMINAR REPORT TOPIC
PYTHON PROGRAMMING
DOMAIN

Submitted in partial fulfilment of the degree of


B.Tech
Sri Venkateswara collage of engineering and technology

By

Kalavatejaswarreddy
(9121759306)

Sri Venkateswara collage of engineering and technology


Chittoor
CERTIFICATE

This is to certify that Industrial Training Internship Report entitled PYTHON


PROGRAMMING DOMAIN has been submitted by Kalavatejaswarreddy

9121759306 or partial fulfilment of the Degree of B.Tech of Sri Venkateswara collage

of engineering and technology It is found satisfactory and approved


for submission.

Date:
26/11/2023

Lavanya Ravuri venkataswamy

HOD, Director,
Sri Venkateswara collage of
engineering and technology Sri Venkateswara collage of engineering and
technology
OFFICIAL LETTER
INTERNSHIP MENTOR DECLARATION

This is to certify that the Industrial Training Internship In INTERNPE entitled


PYTHON PROGRAMMING by Kalavatejaswarreddy has been done
successfully and completed all the tasks provided in the internship.

Date:
24/11/2023

Ms. KRATI PORWAL


MENTOR,
INTERNPE
www.internpe.in
TASK DESCRIPTION

TASK 1:

DIGITAL CLOCK TASK:

OBJECTIVE:

​ Time Retrieval: Obtain the current time from the system clock.

​ Display Format: Format the time into a readable digital clock format (e.g., HH:MM:SS).

​ Update: Continuously update the display to reflect real-time changes.

​ User Interaction (Optional): Allow users to interact, such as setting alarms or toggling
between 12-hour and 24-hour formats.

HOW TO PERFORM:

Certainly! Here's a step-by-step guide without providing specific code:

1. Import Time Module:


- Use the `time` module in Python to work with time-related functions.

2. Retrieve Current Time:


- Utilize the `time` module to get the current time from the system clock.

3. Format Time:
- Format the retrieved time into a readable digital clock format (hours, minutes, seconds).

4. Display Time:
- Display the formatted time continuously to create a real-time updating digital clock.

5. Optional: User Interaction:


- Consider adding user interaction features, such as setting alarms, adjusting time formats, or
providing additional functionalities.

6. Run Indefinitely:
- Use a loop to run the clock continuously, updating the display in real-time.

7. Error Handling:
- Implement error handling to manage unexpected issues, ensuring the clock operates
smoothly.

8. Optional: GUI Implementation (Tkinter):


- If desired, explore using the Tkinter library to create a graphical user interface for the digital
clock.

9. Documentation:
- Provide comments and documentation to explain the functionality of the code for future
reference or collaboration.

10. Testing:
- Test the digital clock under different scenarios to ensure accuracy and reliability.

TASK 2:

TIC TAC TOE GAME TASK:

OBJECTIVE:

1. 1. Player Interaction: Allow two players to take turns marking spaces on a 3x3 grid.
2. 2. Winning Condition: Define conditions for a player to win by having three marks in a
row, column, or diagonal.
3. 3. Tie Detection: Identify when the game results in a tie with no empty spaces left.
4. 4. User Experience: Ensure a user-friendly experience with clear instructions, valid
move validation, and an option to replay.
HOW TO PERFORM:

Certainly! Here's a non-code, step-by-step guide on how to create a basic Tic Tac Toe game in
Python:

1. Game Board Setup:


- Create a 3x3 grid to represent the game board.

2. Player Turns:
- Allow two players to take turns marking empty spaces on the grid.

3. Winning Conditions:
- Define winning conditions by checking for three marks in a row, column, or diagonal.

4. Tie Detection:
- Implement logic to detect a tie when there are no empty spaces left on the board.

5. User Interaction:
- Enable user interaction by allowing players to input their moves.

6. Feedback:
- Provide clear feedback after each move, indicating if a player has won, the game is a tie, or if
it's the next player's turn.

7. Reset and Replay:


- Include functionality to reset the game board for a new match.
- Allow players to replay without needing to restart the program.

8. Validation:
- Validate moves to ensure players can only mark empty spaces and avoid illegal moves.

9. User Interface Enhancements:


- Consider adding user-friendly features such as highlighting winning combinations or
animating the marks.

10. Testing and Debugging:


- Test the game thoroughly, including edge cases like invalid inputs, and debug any issues to
ensure smooth gameplay.

11. Optional Features (if time allows):


- Explore additional features like a scoreboard, customizable player marks, or a graphical user
interface.
TASK 3:

SNAKE GAME TASK:

OBJECTIVE:

1. Player Control: Allow the player to control a snake's movement on a grid.


2. Food Interaction: Implement the appearance of food for the snake to consume and grow.
3. Collision Detection: Detect collisions between the snake and the game boundaries or itself.
4. Scorekeeping: Keep track of the player's score based on the number of food items consumed.

HOW TO PERFORM:

Certainly! Here's a non-code, step-by-step guide on how to create a basic Snake Game in
Python:

1. Grid Setup:
- Design a grid-based environment where the snake will move.

2. Player Control:
- Allow the player to control the snake's movement using arrow keys or a similar input method.

3. Snake Movement:
- Implement logic for the snake to move continuously in the direction set by the player.

4. Food Generation:
- Introduce food items randomly on the grid for the snake to consume and grow.

5. Collision Detection:
- Detect collisions between the snake and the game boundaries or itself.
- Implement game-over conditions when a collision occurs.
6. Snake Growth:
- Define the rules for the snake to grow longer after consuming food.

7. Scorekeeping:
- Keep track of the player's score based on the number of food items consumed.

8. Game Loop:
- Create a game loop that continually updates the game state, handles user input, and redraws
the screen.

9. Graphics (Optional):
- Optionally, enhance the game by adding graphical elements or animations.

10. Speed Control (Optional):


- Consider implementing a mechanism to increase the snake's speed as the player's score
grows.

11. User Interface Enhancements:


- Include visual feedback for important events, such as snake growth or game over.

12. Testing and Debugging:


- Test the game thoroughly to ensure smooth gameplay and address any bugs or issues.

13. Documentation:
- Provide comments and documentation to explain the functionality of the code for future
reference or collaboration.

TASK 4:

CONNECT 4 GAME TASK:

OBJECTIVE:

1. Grid Structure: Create a 6x7 grid to represent the Connect 4 game board.
2. Player Interaction: Allow two players to take turns dropping colored discs into columns.
3. Winning Condition: Define conditions for a player to win by connecting four discs horizontally,
vertically, or diagonally.
4. User Experience: Ensure a user-friendly experience with clear instructions, valid move
validation, and an option to replay.

HOW TO PERFORM:

Certainly! Here's a non-code, step-by-step guide on how to create a basic Connect 4 game in
Python:

1. Grid Setup:
- Create a 6x7 grid to represent the Connect 4 game board.

2. Player Turns:
- Allow two players to take turns dropping colored discs into columns.

3. Disc Placement:
- Enable user interaction by allowing players to drop their discs into columns.
- Implement logic to place the disc in the lowest available position within the selected column.

4. Winning Conditions:
- Define winning conditions by checking for four consecutive discs in a row, column, or
diagonal.
- Implement logic to detect and announce a winner.

5. Tie Detection:
- Implement logic to detect a tie when the grid is full with no Connect 4.

6. User Interface:
- Provide clear feedback after each move, indicating the current player, the outcome of the
move, and game status.

7. Reset and Replay:


- Include functionality to reset the game board for a new match.
- Allow players to replay without needing to restart the program.

8. Validation:
- Validate moves to ensure players can only drop discs in valid columns and avoid illegal
moves.

9. User Interface Enhancements:


- Consider adding user-friendly features such as highlighting winning combinations or
animating the disc placements.

10. Testing and Debugging:


- Test the game thoroughly, including edge cases like invalid inputs, and debug any issues to
ensure smooth gameplay.

You might also like