Comparing Scratch and Python

 "Comparing Scratch and Python"


What is Comparing  :

- Comparing is looking at things to determine how they are alike and how they are different.

-  identify similarities and differences between them

 

What is scratch :

- a visual programming language that allows students to create their own interactive stories, games and animations

 

 

What is python :

an open-source programming language, having features like object-oriented, interpreted and high-level too. It is a dynamically typed programming language, which is easy to use with redable and user-friendly syntax. And developed by Guido van Rossum


Contoh :

 

In Scratch:

 

 


 

 

 

In Python :

 

Print (“what’s your name?”)

Input(“your name is:  ” )

 

Print(”How old are you?”)

Input(“your age is:  “)

 

Print(“where do you live?”)

Input(“you live at: “)




So, comparing scratch and python is?

 

 

                      Scratch                                   

                           Python                               

Scratch is a great programming language for children and beginners who want to learn the basics of programming                                                                                         

Python is more suited for professional developers who want to build more complex and powerful applications.                                                                                     

The syntax of Scratch is based on blocks that snap together                                                                                                                 

Python uses a text-based syntax that requires the use of proper indentation and syntax                                                            

With Scratch students can create amazing art, games, and even characters for games. It is primarily used for creating simple games and animations                                                                                                           

Python is a versatile programming language that is frequently used by software developers as a support language for various purposes, such as build control and management, testing, and more.                   

In Scratch, you must first create a variable before you can assign a value to it                

Python, a variable is created when you assign a value to it                                         

In Scratch, you can make a sprite talk to provide output to the user of the program                                                                             

In Python, you must enclose strings (any text) within a single (‘) or double (“) quotes                                                                         

Scratch does not support object-oriented programming, which allows programmers to organize software design around data, or objects, rather than functions and logic.


Python, on the other hand, is an object-oriented language, meaning that it allows you to define and manipulate objects.           

 

 

 


Comments

Popular posts from this blog

( SCRATCH 3 ) TUTORIAL ANIMASI KUCING BERJALAN "WALK" SAMBIL MENGELUARKAN SUARA "SOUND MEOW"