The store will not work correctly when cookies are disabled.
chev_right_small instagram twitter youtube tiktok threads plus alert_in_circle basket basket_full chev_down chev_right cir_eye cir_pencil cir_puzzle c_scissors cross pencil message linkedin linked youtube link look paypal p_discover p_maestro p_mastercard p_paypal p_visa search secure sq_book sq_earphones sq_eye sq_message sq_pencil sq_play play sq_search star tick user user_in_circle wishlist zoom_big zoom_in zoom_out nav play_video download mail balance edit peeko
Skip to Content

On this website you can browse and buy Usborne books in English, French, German, Spanish, Catalan, Italian, Dutch, Korean and Brazilian Portuguese.

In the UK and certain countries in Europe, you can buy directly from Usborne or from an Independent Usborne Partner. In the USA you can buy books via links to Usborne Books & More, the website of our US distributors.

Elsewhere in the world we provide links to local online retailers who will fulfil and deliver your order. Please check the retailer’s delivery destinations to make sure they deliver where you are.

In China, you can buy Usborne books in English and in Chinese (simplified characters) via online and offline retailers.

Be alert to fraud! Learn how to check if communication from Usborne is genuine. 

Welcome to

This event ends in
D:
H:
M:
S
Toggle Nav
Irresistible books for curious kids
  • Books
    • Browse by Age
      • 0 - 3 years
      • 3 - 5 years
      • 5 - 7 years
      • 7 - 11 years
      • 11 - 13 years
      • 13 years+
      • Browse by Age
    • Browse by Category
      • Activity and sticker books
      • Dinosaurs
      • Hobbies and interests
      • Fiction
      • Baby books
      • Starting school
      • History
      • Science and technology
      • Early years
      • English
      • Foreign languages
      • Geography and environment
      • Growing up and mental health
      • Libros en Español
      • Lift-the-flap books
      • Maths
      • Picture books
      • Read with Usborne
      • Animals
      • Inclusive book recommendations for schools
      • Puzzle books and gamebooks
      • Unicorns
      • Weddings
      • Reluctant readers
      • Jigsaws
      • Magic painting and fingerprinting
      • Sound and musical books
      • Browse by Category
    • Popular Themes
      • Earth and the environment
        Earth and the environment
      • Mental health and feelings
        Mental health and feelings
      • Jigsaws
        Jigsaws
      • Sound and musical books
        Sound and musical books
    • Popular Series
      • STICKER DOLLY DRESSING ®
        STICKER DOLLY DRESSING ®
      • THAT'S NOT MY®
        THAT'S NOT MY®
      • Wind-up
        Wind-up
      • Pop-Ups
        Pop-Ups
      • Sound Books
        Sound Books
      • Magic Painting Books
        Magic Painting Books
      • First Sticker Books
        First Sticker Books
      • DON’T TICKLE Touchy Feely Sound Books
        DON’T TICKLE Touchy Feely Sound Books
    • New Books
    • Browse All Books
    • Books
  • Activities for Kids
    • Discover Activities for kids
    • Play and Learn at Home
    • Fun facts
    • Activity Sheets
    • Storytime Videos
    • Write a Story
  • Quicklinks
    • Discover Quicklinks
    • Featured Quicklinks
    • Browse Quicklinks Books
    • How to Say
    • Online Safety
    • Quicklinks Help
  • Schools
    • Resources
    • Lexiles
    • Fact Force
  • About Us
    • Meet the Family
    • Sustainability
    • What We Stand For
    • Safety
    • Careers
    • Global
    • Trade
    • Blog
    • Press
    • Contact Us
  • Fun facts
  • Sign In / Register Sign Out
  • Buying Options
  • Privacy
  • Terms & Conditions
  • Home
  • Books
  • Try Python Coding Online

Try Python Coding Online

On this page, you can try out some of the programs in Coding for Beginners using Python and test your own programs. The programs run in your browser in windows called Trinkets and you don’t need to download or install any software.

Scroll down to view sample programs from Coding for Beginners using Python – or go to the bottom of the page for a Trinket where you can run your own code.

Click or tap the ‘Run’ arrow ➤ to see the code in action. You can edit the code, too, but you won’t be able to save your changes.

Guessing game

This program generates a random number between 1 and 20 for you to guess. Try editing the code to change the range of numbers. For more about this program see page 30 in Coding for Beginners Using Python.

A game of consequences

This program generates silly stories, like the party game ‘Consequences’. It uses variables stored as lists – see pages 36-39 in Coding for Beginners Using Python. Each time you run the program you’ll get a different story. Try changing some of the variables to generate different stories.

Spy messages

Spies use encryption to scramble the letters in their messages. This ‘Caesar Cipher’ program takes your message and shifts each letter along the alphabet a certain number of places, depending on the number you enter in the code. See pages 42-45 for more about this program – and how to decrypt your messages.

Try your own code

You can try your own Python programs in this Trinket window – or any of the programs up to page 45 in Coding for Beginners Using Python. You can download the code for the programs at the Usborne Quicklinks. (Programs after page 46 use code that is not supported by this Trinket window.)

 

Usborne Quicklinks

Download the code for programs in Coding for Beginners Using Python, and for links to lots of other useful resources

Usborne Quicklinks

Useful Links

  • Buying Options
  • Newsletter Sign-Up
  • Privacy Policy
  • Cookie Settings
  • Terms & Conditions
  • Modern Slavery Statement

Menu

  • Books
  • Activities For Kids
  • Quicklinks
  • About Us
  • Blog
  • Fact of the Week

Contact

FAQ and Help

Trade Enquiries

Press Information

 

Connect

  • Follow Us on Instagram
  • Follow Us on Facebook
  • Follow Us on Youtube
  • Follow Us on Tiktok
  • Follow Us on Twitter
  • Follow Us on Threads

 

About Us

Usborne is one of the world’s leading independent book publishers. We are proud to be a family business that aims to create brilliant books for children of all ages.

©2026 Usborne Publishing Limited

Site by Superb