Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

16 February 2021

Code.org

 Code.org

I know I have blogged on this before, but that was ages ago and I have
rediscovered how great this is, with all new versions.



Of course you can do the hour of code in this, but the site has expanded so much.
There are so many brilliant things that you can do.
There is a learning path for Junior, Middle and High Schools.
There are complete teacher solutions with lesson plans, differentiated leaning,
student assessment and even professional learning spaces.

I am so impressed with this and I cannot believe that this is all FREE!


#MIEExpert  #MSFTEdu #technology #edtech #MIEExpert #TeachersMatter #coding #hourofcode #code #programming #code.org

08 February 2018

Guide to Python

Guide to Python


The Ultimate guide to Python programming document.
This is all the things you need to be able to complete your
GCSE programming.


How to create a quiz using Python Programming language

How to create a quiz using Python Programming language


There is a structure to when you write code.
We first lists the steps, then we write the code.

Let us look at the structure for when you create a Quiz

Let us look at the structure of the file first.

The basic layout of the quiz
1.User input basic information and save them in file
2.User choose topic to test
3.Start test
4. Get results

Part 1
Input the basic information
Read the input information
save in the file

We can define 2 functions at this point

def read_user_info():
userInfo = input(Enter your name:")
Add some rules here
write_file(filename, content)

def write_file(filename, content):
with open(filename, "a+") as f:
f.write(content)

User choose topic to test
Start test

Here is we need Merge our topics maths() and history() computing()

The structure of those two functions:
1.open file
#maths
with open("maths.txt","r") as topic1:
...
#history
with open("history.txt","r") as topic2:
...

2.user choose difficulty level
#maths
difficultyLevel = input("Please select a difficulty \
level for the  maths quiz:easy, medium or hard:")
...
#history
difficultyLevel = input("Please select a difficulty \
level for the  history quiz:easy, medium or hard:")
...

3.user answer questions / recode score

#maths
if difficultyLevel == "Easy" or difficultyLevel == "easy": 
    for x in range(0,3):
        print(questionsForMaths[x].rstrip()) 
    userAnswer = input("Choose from the following:").lower()
    if userAnswer == questionsForMaths[1].rstrip():
        print ("correct")
        score = score + 1 
    else:
        print ("incorrect")
    ....
    (other 4 questions)
 ...
 (other difficulty level)

#history
if difficultyLevel == "Easy" or difficultyLevel == "easy":
   for y in range(0,3):
       print(questionsForHistory[y].rstrip()) 
   userAnswer2 = input("Choose from the following:")
   if userAnswer2 == questionsForHistory[2].rstrip():
       print("correct")
       score = score + 1
   else:
       print("incorrect")
   ....
   (other 4 questions)
...
(other difficulty level)

4.show result

print("Your total score is", score)
percentage = (score/5)*100
print("The percentage of questions correct is", percentage)
if percentage < 40.0:
...
Thus we can first split it to four functions

def open_file(filename):
...
def choose_difficult_level():
...
def answer_questions(topic,difficultyLevel):
...
def show_result(topic, score,fullUsername):
...

15 March 2014

Mitch Resnick Scratch TED Talk

Mitch Resnick Scratch TED Talk

)

Mitch Resnick, one of the main creators of the coding program called Scratch, 
delivered a TED Talk outlining the benefits of teaching childrens to code, so 
they can do more than just “read” new technologies — but also create them.

Just under 16 minutes, but very worthwhile!!

29 November 2013

code.org

code.org

 

This is really awesome.
This is a free site that allows learners to learn how to code using JavaScript.
It starts off very easy and I really like the fact that the characters are from
Angry Birds so the learners can identify with them instantly.
There are very nice steps that take you through the different levels and
there is also video that assist you with the programming.
Click on the link below to start!


Click on the link below to see all of the different levels and concepts.

What schools don't teach

What schools don't teach


This is a really good YouTube video about computer programming.
I really liked the interviews with various people on how they got started
and the age that most of them started.
It is just under 6 minutes long, but definitively worth a watch!  

10 July 2013

Alice programming

Alice programming



Alice is a freeware object-oriented educational programming language 
with an integrated development environment (IDE). 
Alice uses a drag and drop environment to create computer animations 
using 3D models.