If you have any suggestions about our website or study materials, please feel free to leave a comment to help us improve. Alternatively, you can send us a message through the Contact Us page. Thank you for helping us make Free Study Hub better!

Unit 1 - Lesson 1

1.1.1. What is a Computer Programming Language?

The sequence of instructions (in the form of source code) written in a computer programming language is called a computer program.

1.1.2. The Genesis of Python

The Python programming language evolved through many versions.

1.1.3. Python Program Life Cycle

Python source code is written and saved in a file with a .py extension.

1.1.4. Difference Between Compiler and Interpreter

Compiler takes the entire block of code as a single unit to check and identify the errors in the program.

1.1.5. High-Level Language Categories

        (a) XML is an example of a markup programming language.
        (b) Scripting languages are used to automate frequently executed tasks.
        (c) Functional programming languages use conditional expressions and recursion to perform computations.
    

1.1.6. Identify the Error

print("Python is Easy")

1.1.7. Identify the Error

print("Python is not Typhoon")

1.1.8. Other Usages of Print Function

# Write your code here to print the given word n times
n = int(input())
print("Abracadabra" * n)

1.1.9. Fill in the Missing Code

print("wh" "ere", "the" "re", "is", "a", "will,", "th" "ere", "is", "a", "way")

1.1.10. Features of Python

        (a) Python is an interpreted language.
        (b) A Python program can execute C and C++ programs also.
        (c) A Python program written on a Windows operating system will also execute on a Linux operating system as it is portable.
    

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.