Docsity

COMPUTER LEARNING TO PYTHON, Study Guides, Projects, Research of Introduction to Computing

Partial preview of the text

Download COMPUTER LEARNING TO PYTHON and more Study Guides, Projects, Research Introduction to Computing in PDF only on Docsity!

After launching the SPYDER software, you will see the following screen.

Write print (‘welcome to python’) in the window shown below. Note: Start to write your program below line number 6. Do not erase or add anything to lines 1 to 6.

You will see the output of your program here. Notice that In[2] appears as shown below. This indicates that your program has run successfully without any error and the computer is ready to perform the next task. You can save your program by clicking here. Save the file by the extension .py

Now write two statements as shown in the figure below and press F5 key on the keyboard to run the program.

After you enter your name say Abdullah, the following screen will be observed.

Now press ‘enter’ key of the keyboard.

The screen will display the value of x which is basically your name (string) along with the string “the name you entered was” as shown below