Paul Sutton

CodeClub

More Trinket Coding

Trinket is a web based development platform. One of it's features is the programming language blocks, which is in fact a block based front end and creates Python programs.

I am sharing these on my blog today, even though I also shared earlier in the week on LinkedIn and also on Twitteras part of the Paignton Library Virtual Code Club.

Drawing a circle

circle1

And the associated output

circle1

Drawing a star

star1

And the associated output

star2

I am working on a book to update my previous Nested loops guide I wrote a few years ago. This needed updating anyway so it would cover Scratch 3.0. This book / guide is work in progress, and will be typeset in $\LaTeX$ using Overleaf

#programming, #trinket, #Blocks, #python, #WebIDE, #LaTeX, #Overleaf, #nestedloops, #loops, #codeclub

cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

At Paignton virtual Code Club, we are now approaching the end of the Scratch modules. Well done to everyone. The next step is probably to progress to Python [2][3].

If you don't feel ready to do lots of typing, you may want to look at Trinket and blocks. Then perhaps move to the Code Club modules [3].

Blocks, as the name suggests, is a block based system. The difference here is, that the blocks are all Python statements and code. So combining these allow you to easily start coding in Python.

To get started you need to sign up for an account on the Trinket website [1]

trinket

Click you user name and select new trinket and then select blocks

select blocks

You are now presented with your development area.

dev area

You may want to change your project title to something meaningful.

change title

You can select the category of block, then simply use click / drag in similar way as you would with Scratch.

So in this example I am just going to draw a square.

draw square

As we are using turtle, you will need to change the pen up, block so that it says pen down.

change command

Adding comments to your code is important, as it helps you keep track of what the code is doing and helps with debugging also helps others understand your code.

add comment

You can also view the Python code that is produced, this can be copy / pasted to IDE so you can just run the Python code on its own.

![View Python]

https://raw.githubusercontent.com/zleap/blogmedia/master/trinket/square-python-code.png

Finally you can share your project with others.

share

Hopefully this is helpful.

Resources

1 Trinket 2 Python 3 Code Club python Modules

#codeclub,#paignton,#trinket,#python,#coding,#skills,#technology

cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

Virtual Code Club progress

We are slowly working through the Code Club activities as part of the virtual code club.

virtual code club2

We are still looking for more people to take part, and upload their projects to the new 2020 studio.

References

Stay safe resources

#codeclub, #scratch

Code Club Python Activity 2

Have now completed, the Rock Paper Scissors activity.

#covid19,#lockdown,#virtual,#codeclub,#challenges

Code Club Python Activity 1

As I am more used to Python. I decided to skip a head for the Code Club Challenge and have a go at the About Me Activity.

Here is my attempt at that, it is all one big program which is probably fine.

As this is links to Repl.it then I find Chrome browser will display this. Firefox doesn't seem to work.

#covid19,#lockdown,#virtual,#codeclub,#challenges

Scratch Project 7

In an effort to help people keep kids occupied over the CoronaVirus (Covid-19) crisis. I am helping my local library with running a virtual code club. We are now on week to of the virtual code club.

cc-by logo

Please contact Paignton Library for more information. Please use social media or e-mail as the library is closed.

#scratch, #education, #school, #homeschool, #activities, #covid19, Module2, #codeclub, #virtual


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

covid19

Scratch Project 6

So further to my previous post I have completed another two module1 activity.

Firstly Boatrace

boatrace

Secondly, Chatbot, well sort of, what I have done is to add a introscreen so this displays first. chatbot

I have created a new studio for these completed projects.

To take part please follow @paigntonlibrary on twitter

#scratch, #education, #school, #homeschool, #activities, #covid19, Module1, #codeclub, #virtual


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

Scratch Project 5

So further to my previous post I have completed another module 1 activity.

ghostbusters

I have created a new studio for these completed projects.

To take part please follow @paigntonlibrary on twitter

#scratch, #education, #school, #homeschool, #activities, #covid19, Module1, #codeclub, #virtual


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

Scratch Project 4

So further to my previous post I have completed another module 1 activity.

lostinspace

I have created a new studio for these completed projects.

To take part please follow @paigntonlibrary on twitter

#scratch, #education, #school, #homeschool, #activities, #covid19, Module1, #codeclub, #virtual


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

covid19

Scratch Project 3

In an effort to help people keep kids occupied over the CoronaVirus (Covid-19) crisis. I am helping my local library with running a virtual code club. To this end I have decided to work through the scratch module 1 activities.

cc-by logo

I have created a new studio for these completed projects.

Please do not contact me regarding joining this studio, the group will be invite only. It will also serve for a new studio for code club when we get back.

#scratch, #education, #school, #homeschool, #activities, #covid19, Module1, #codeclub, #virtual


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

covid19