From fa463b6457908cf7d246c0eac5799644ed205272 Mon Sep 17 00:00:00 2001 From: dragoniteclover111 <69779113+dragoniteclover111@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:49:57 +0800 Subject: [PATCH] Update mycode.py I am Clover Lee from 1D and I have added more questions and one more topic. I also helped amended your code better. --- mycode.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/mycode.py b/mycode.py index 2f6273b..0072b82 100644 --- a/mycode.py +++ b/mycode.py @@ -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!")