Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mycode.py #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions mycode.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,35 @@

music1 = input("I can see colours in my mind when I hear music.")

uniform1 = input("I like to march and do drills.")

tech2 = input("I know how to build apps and websites.")

outdoor2 = input("I'm good with tying knots and ropes.")

music2 = input("I play a musical instrument well.")

tech3 = input("I can code well")
uniform2 = input("I know how to execute the drills well.")

tech3 = input("I can code well.")

outdoor3 = input("I love nature and wildlife in the outdoors.")

music3 = input("I love to listen to all kinds of music.")

uniform3 = input("I want to learn more about drills.")

tech_final = int(tech1) + int(tech2) + int(tech3)
outdoor_final = int(outdoor1) + int(outdoor2) + int(outdoor3)
music_final = int(music1) + int(music2) + int(music3)
uniform_final = int(uniform1)+ int(uniform2)+ int(uniform3)
print()

if tech_final > outdoor_final and tech_final > music_final:
if tech_final > outdoor_final and tech_final > music_final and tech_final > uniform_final:
print("You might be suitable for Infocomm club!")
elif outdoor_final > music_final:
if outdoor_final > uniform_final and outdoor_final > tech_final and outdoor_final > music_final:
print("You might be stuiable for ODAC!")
else:
if music_final > tech_final and music_final > outdoor_final and music_final > uniform_final:
print("You might be suitable for Band!")


if uniform_final > outdoor_final and uniform_final > tech_final and uniform_final > music_final:
print("You might be suitable for Uniformed Group!")