# What does Sprite = None mean?

**URL:** <https://forum.makecode.com/t/what-does-sprite-none-mean/30896>\
**Category:** Help\
**Created:** [September 29, 2024, 5:24am UTC](https://forum.makecode.com/t/what-does-sprite-none-mean/30896 "2024-09-29T05:24:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teacherivandotsg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/teacherivandotsg/32/16126_2.png) [@teacherivandotsg](https://forum.makecode.com/u/teacherivandotsg)\
**Post date:** [September 29, 2024, 5:24am UTC](https://forum.makecode.com/t/what-does-sprite-none-mean/30896/1 "2024-09-29T05:24:04Z")

</div>

Hi, I am learning / teaching python using Makecode Arcade. I’m trying to understand what the generated code means by “Ballie: Sprite = None”.

What does Sprite = None even mean?

Code in Python:

```auto
@namespace
class SpriteKind:
    Ball = SpriteKind.create()

def Make_Ball_Sprite():
    global Ballie
    Ballie = sprites.create(img("""
            . . . . . b b b b b b . . . . . 
                    . . . b b 9 9 9 9 9 9 b b . . . 
                    . . b b 9 9 9 9 9 9 9 9 b b . . 
                    . b b 9 d 9 9 9 9 9 9 9 9 b b . 
                    . b 9 d 9 9 9 9 9 1 1 1 9 9 b . 
                    b 9 d d 9 9 9 9 9 1 1 1 9 9 9 b 
                    b 9 d 9 9 9 9 9 9 1 1 1 9 9 9 b 
                    b 9 3 9 9 9 9 9 9 9 9 9 1 9 9 b 
                    b 5 3 d 9 9 9 9 9 9 9 9 9 9 9 b 
                    b 5 3 3 9 9 9 9 9 9 9 9 9 d 9 b 
                    b 5 d 3 3 9 9 9 9 9 9 9 d d 9 b 
                    . b 5 3 3 3 d 9 9 9 9 d d 5 b . 
                    . b d 5 3 3 3 3 3 3 3 d 5 b b . 
                    . . b d 5 d 3 3 3 3 5 5 b b . . 
                    . . . b b 5 5 5 5 5 5 b b . . . 
                    . . . . . b b b b b b . . . . .
        """),
        SpriteKind.Ball)
    Ballie.set_velocity(100, 100)
    Ballie.set_position(80, 0)
    Ballie.set_stay_in_screen(False)
    Ballie.set_bounce_on_wall(True)

Ballie: Sprite = None
Make_Ball_Sprite()

```

Code in Blocks:

 ![Screenshot 2024-09-28 at 11.46.20 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/4/14aa8778aee7edc27e5388b747ab9dafa8c08c6d.png)

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [September 29, 2024, 5:32am UTC](https://forum.makecode.com/t/what-does-sprite-none-mean/30896/2 "2024-09-29T05:32:21Z")

</div>

All variables in Blocks are global variables. Your variable, `Ballie`, is created in the “main” portion of your Python program (it’s the equivalent to `on start` in blocks) to make it a global variable. Because you don’t assign it a value in `on start`, it is set to `None` (the Python equivalent to `null` in other programming languages).
