Boot Camp 1 - Python 101 - Tasks

Session 1 Tasks

Submitting Tasks is Crucial!

All participants must submit the assigned tasks before attending the next class session. These exercises are designed to reinforce what was taught in the boot camp and help you practice independently.

Important Notice: Task submission is mandatory for entry into the next class. If you do not submit your tasks, you will not be allowed to attend the next session.

Please complete the tasks on your own. The purpose of this boot camp is to help you learn and build real programming skills. Avoid using ChatGPT or other AI tools to generate solutions. This is not a departmental course requirement; you joined voluntarily to learn, so make the most of the opportunity by solving the problems yourself.


Task 1: Socrative Quiz

Scan the QR code below or visit:
gosocrative.com

Enter the room name:
uitssec

Complete all the MCQ questions in the quiz and submit a screenshot of your final result.

Socrative QR Code

Task 2: List Slicing and Reversing

Create a list of 10 numbers and print: First 5, Last 5, Every second element, Reverse list.

Example List
[1,2,3,4,5,6,7,8,9,10]

Task 3: Formatting Multiple Variables

Ask user for name, age and department and print a formatted sentence using f-string.

Example Output
Alice is 21 years old and studies in the CS department.

Task 4: String Strip and Replace

Input a sentence with extra spaces. Remove spaces with strip() and replace a word.

Input: " I love Python programming "
Output: "I love Java programming"

Task 5: Type Casting

The program receives two numbers as strings:
num1 = "15"
num2 = "5"
Convert them to integers, add them, print the result, then convert the result to float and print again.

Task 6: Boolean / Logical Operations

Create two boolean variables:
is_student
has_id

Then check:
1. If the person can enter the exam hall (must be student AND have ID)
2. If the person gets library access (student OR has ID)
3. Print the opposite of is_student
4. Use XOR to check if only one condition is true

Task 7: F-String Calculator

Ask the user for two numbers and print sum, difference, product and division using f-strings.

Example Input
5
2

Output
Sum: 7
Difference: 3
Product: 10
Division: 2.5