0% found this document useful (0 votes)
6 views4 pages

Challenges 3

The document outlines a series of programming challenges faced by a tech club over nine days, covering topics such as admission processes, subject selection, class scheduling, assignment deadlines, prime number identification, average score calculation, sports day decisions, event sorting, and group study planning. Each challenge includes code snippets and their respective outputs. The challenges demonstrate basic programming concepts and logical reasoning.

Uploaded by

Karthickraja K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Challenges 3

The document outlines a series of programming challenges faced by a tech club over nine days, covering topics such as admission processes, subject selection, class scheduling, assignment deadlines, prime number identification, average score calculation, sports day decisions, event sorting, and group study planning. Each challenge includes code snippets and their respective outputs. The challenges demonstrate basic programming concepts and logical reasoning.

Uploaded by

Karthickraja K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

TECH CLUB

CHALLENGE -3

Day 1: The Admission Process


stu_mark = 75
if(stu_mark >= 60):
print("Admission granted!")
else:
print("Admission not granted!")

OutPut:
Admission granted!

Day 2: Choosing Your Subjects


math = 85
science = 90
english = 80
if(math > science):
print("math is your best subject!")
if(math > english):
print("math is your best subject!")
else:
print("english is your best subject!")
else:
print("science is your best subject!")

OutPut:
science is your best subject!
Day 3: Class Timetable Confusion
class1 = [9,11]
class2 = [10,12]
if(class1[0] < class2[1]):
if(class1[1] > class2[0]):
print("Classes are overlapping!")
else:
print("Classes are not overlapping!")
else:
print("Classes are not overlapping!")

OutPut:
Classes are overlapping!

Day 4: The Assignment Deadline


today = "2024-09-15"
deadline = "2024-09-10"
if(today > deadline):
print("you're Late!")
else:
print("On time!")

OutPut:
you're Late!
Day 5: Joining the Tech Club
num = 17
for i in range(2,num):
if(num % i == 0):
print(f"{num} is not a prime number!")
break
else:
print(f"{num} is a Prime number!")

OutPut:
17 is a Prime number!

Day 6: Midterm Exam Prep


marks = [88, 76, 90, 85, 92]
Average = sum(marks) / len(marks)
print("Your average score is",Average)

OutPut:
Your average score is 86.2

Day 7: Sports Day Dilemma


baseketball = 8
football = 12
if(baseketball >= 5 and football < 11):
print("Let's play baseket!")
else:
print("Let's play football!")
OutPut:
Let's play football!

Day 8: College Festival Preparation


events = ["Coding Contest", "Hackathon", "Music Night", "Art Show"]
Sort = sorted(events)
print(Sort)

OutPut:
['Art Show', 'Coding Contest', 'Hackathon', 'Music Night']

Day 9: Group Study Planning


student1 = [2, 4, 6, 8]
student2 = [3, 4, 8, 10]
Common_time = set(student1) & set(student2)
print(Common_time)

OutPut:
{8, 4}

You might also like