top of page

STEM Club

stem logo.JPG

"ATOMS WITH CONSCIOUSNESS, MATTER WITH CURIOSITY"

Vision 

To ensure that members develop a methodical and target oriented approach to problems and commence post-secondary education with confidence and a greater practical understanding.

Belief

 Our belief lies in freedom of inquiry; in being free to ask any question, to doubt any assertion, to seek for answers, to challenge those answers and make better ones. It lies in the fostering of our imaginations, the sharing of ideas and in the admittance of not knowing taken as incentive to explore and discover.

Mission

  • To inspire curiosity about the mechanism of the world around us and encourage the urge to explore and experiment.

  • To provide students access to high quality STEM pathways and prepare them for future careers in related fields.​

  • To encourage critical thinking, logical reasoning, and a collaborative spirit to overcome each challenge. 

What does STEM stand for?

Arduino Projects

Members applied their newfound coding skills to experiment with the Arduino coding language and create a few basic electronic systems using microprocessors, LEDs. resistors and sensors.

Prospective projects involve the utilisation of Arduino products to create prototypes of practical systems/

71z22cRPeeL.jpg
WhatsApp Image 2023-01-28 at 15.55_edited.jpg

import random

endGame = False
win = False
maxFailedAttempts = 6
turns = 0
failedAttempts = 0
lettersFound = []
lettersNotInWord = []

# Create a list with all words
with open("wordlist.txt", "r") as allWordsFile:
   allWords = allWordsFile.read().splitlines()

# Choose a random word
randomWord = random.choice(allWords).lower()
print(("_ " * len(randomWord)).rstrip())
print()

while not endGame:
   letter = input("Please enter a letter: ")
   while len(letter) != 1:
       letter = input("Invalid input, please try again: ")

    if letter in lettersNotInWord or letter in lettersFound:
       print("You have already attempted this letter.")
       continue
   print()

    success = randomWord.find(letter) > -1
   if success:
       lettersFound += letter
       print("You found a letter!")
   else:
       failedAttempts += 1
       lettersNotInWord += letter
       print("Your letter is not in the word.")
       print(f"Failed Attempts: {failedAttempts}/{maxFailedAttempts}")
       
   for char in randomWord:
       if char in lettersFound:
           print(char, end=" ")
       else:
           print("_", end=" ")
   print()
   print(f"Letters Found: {', '.join(lettersFound)}")
   print(f"Incorrect Letters: {', '.join(lettersNotInWord)}")
   print()
   if failedAttempts >= maxFailedAttempts:
       turns += 1
       win = False
       endGame = True

print("The game has ended.")

# TODO: string interpolation
if win:
   print("Congratulations! You found the word.")
   print(f"It was '{randomWord}'")
else:
   print("You Lost!")
   with open("deadman.txt", "r") as deadmanFile:
       print(deadmanFile.read())
   print("Failed Attempts:", failedAttempts, "/", maxFailedAttempts)
   print(f"The word was '{randomWord}'")
   print("Better luck next time!"


Try out some code! 

Play around with a hang-man game  developed in Python by one of our members. Just copy and paste the code onto a Python interpreter and enjoy!

Python interpreter: 
https://www.programiz.com/python-programming/online-compiler/

6547781_edited.jpg

Programming

TAKE A LOOK AT OUR MEMBER'S CODING PROJECTS AND THEIR CODE!

Computer programming is the driving force of today's progress. With coding skills becoming a vital asset for students, not only to their education but also for long-term career endeavors, STEM Club members were given a chance to choose a programming language of their choice and create basic projects under the tutelage of our mentors. 

By participating, members were able to get a hang of coding logic and computational skills, which are great for future Arduino projects.

​

bottom of page