NEW YEARS’ SPECIAL!

Happy New Years! My name is Manuel and I run ManyProgramming™. Today we will be doing a very simple & fun quiz which you can download and then have fun with. However, the quiz that I will show you will not be the one you can download, simply so that you can’t cheat and you will have more fun. 

The quiz will be a multiple-choice quiz and will have three questions. The ones I will show you will be the very simplest questions and might not be relevant to New Years but the downloaded copy will be much more complicated and will require thinking; as you can see below.

def question1(Quest, Ans1, Ans2, Ans3, Ans):
    global score
    correct_answer=False
    for counter in range (3):
    x=input(Quest)
    if x.upper()==Ans.upper():
            print('Well Done, You got it Correct, +1 Point')
            score+=1
            correct_answer=True
            break
         else:
            print('Sorry, You got it Incorrect, Better luck Next Time! ')
    if not correct_answer:
                print('The Answer was',Ans)

print('ManyProgramming_Quizquam')
score=0
question1('What is my name?','\n A=Daniel','\n B=Manuel','\n C=Manual','B')
question1('What is this blog called?','\n A=ManySrogramming','\n B=DaniProgramming'','\n C=ManyProgramming','C')
question1('What is the date of New Years Day?','\n A=1st January','\n B=31st December','\n C=2nd January','A')
print('\nCongratulations, Your Total Score was', score)

Thank you for reading my blog and I hope you have a Happy New Years. Also, if you would like to see my book reviews blog than Click Here! If you want to download the quiz, then Click of the Link Below!

CHRISTMAS SPECIAL!!

Merry Christmas Picture

Merry Christmas; my name is Manuel and run ManyProgramming! Today I will be doing a simple Christmas quiz that’s multiple-choice and obviously, I will show you how I did it. If you want me to send you the quiz then send me an email: programmingmany@gmail.com!

Firstly, we will very simply name a Turtle Graphics program. All you have to do to name it is type ‘turtle.title(‘Whatever_Your_Name_Is’); however, if you gave ‘import turtle’ a nickname then you need to use it before the ‘.title’. Lastly, for that matter, you can select your own name for the turtle graphics and it can include ANYTHING.

Secondly we will be using Turtle Graphics to design a Christmas Card which has writing on it. Because Turtle Graphics is a very simple graphical program so you would have to copy and paste if you want to have different parts e.g. defining different letters. What you will see below will only be two letters defined and all you have to do to define more letters is copy that and only change the letters (manually). For the full version will all letters download the file at the bottom of the blog (Above the ‘Merry Christmas’)

import turtle as t

FONT = ("Arial", 14)

Ans = str()

def a():
    global Ans
    Ans +='a'
    t.write(Ans[-1], move=True, font=FONT)

def b():
    global Ans
    Ans +='b'
    t.write(Ans[-1], move=True, font=FONT)

def A():
    global Ans
    Ans +='A'
    t.write(Ans[-1], move=True, font=FONT)

def B():
    global Ans
    Ans +='B'
    t.write(Ans[-1], move=True, font=FONT)

def space():
    global Ans
    Ans +=' '
    t.write(Ans[-1], move=True, font=FONT)

def end():
    t.bye()

def delete():
    global Ans
    if len(Ans) > 0:
        Ans = Ans[:-1]
        t.clear()
        t.goto(-200, 50)
        t.write(Ans, move=True, font=FONT)


def getKey():
    t.onkey(a,'a')
    t.onkey(b,'b')
    t.onkey(A,'A')
    t.onkey(B,'B')
    t.onkey(space, 'space')
    t.onkey(end,'Return')
    t.onkey(delete,'BackSpace')
    t.onkey(delete,'Delete')

#The Main Program
t.title('My Christmas Blog')
t.setup(width=500, height=200)   # window size is whatever you want
t.hideturtle()   # hide the arrow
t.tracer(False)  # switch off the drawing the lines
t.goto(-200, 50)  # this is your starting position
t.speed(0)  # drawing very quick
getKey()  # Get the inputs
t.listen()  
t.mainloop()

Something

Lastly, the result of the input (The letters that you put in) is stored in the variable ‘Ans’. You can easily change the variable though.

Thank you for co-operating with this very hard blog and I hope you have a Very Merry Christmas! Also, if you would like to see my book reviews blog then Click Here!

Merry Christmas Picture