To comment a line in Python, you use this/these character(s).
What is a pound sign (#) ?
Made up of 8 bits
What is a byte?
WWW
What is the world wide web?
This search engine, founded by Larry Page and Sergey Brin in 1998, quickly became synonymous with internet searching.
What is Google?
A sequence of instructions designed in such a way that if the instructions are executed in the specified sequence, the desired results will be obtained.
What is an algorithm?
This commonly used Python data structure contains a collection of items referenced by a numeric index.
What is a list?
What is 13?
RAM
What is random access memory?
Company founded by Bill Gates and Paul Allen in 1975 which became one of the world's largest and most influential technology companies.
What is Microsoft?
2 standard data types in python.
What are numbers, strings, lists, tuples, dictionaries, and sets?
To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denote the power operator.
What are two asterisks (**) ?
The binary code for the number 34
What is 100010?
CPU
What is Central Processing Unit?
Popular coding language, introduced in the early 1990s, named after a famous British comedy group.
What is Python?
Define boolean value
What is either true or false?
In Python, the two Boolean values are True and False, and the Python type is bool.
The output of the code below:
str = "pynative"
print (str[1:3])
What is yn?
The decimal result of this binary addition:
1000 + 1010
What is 18?
What is a Portable Document Format?
Computer programming language, developed by James Gosling and his team at Sun Microsystems in the 1990s, designed to be platform-independent and object-oriented
What is Java?
Difference between a list and an array
Python List:
Lists are the inbuilt data structure of python. We can store elements of different types in the list. Items in the list are enclosed between square brackets and separated by commas. We can even nest lists with other data structures like lists, dictionaries, tuples, etc.
Python Array:
Arrays are not the in-built data structure readily available in Python. We must import the array from the 'array' or 'numpy' module. Array stores elements of similar types. If we try to store elements of different types, it will throw an error. We can only store elements of the same types in the array.
Guy The output of the code below:
var= "James Bond"
print(var[2::-1])
What is maJ?
Explanation: Pick a range of items starting in the reverse direction starting from index 2 with step 1.
The decimal value of this binary subtraction:
10111 - 1101
What is 10?
HTML
What is Hypertext Markup Language?
This mathematician and logician, often regarded as one of the fathers of modern computer science, introduced the concept of a universal machine in the 1930s.
Who is Alan Turing?
Difference between local variable and global variable
What is:
A local variable is a variable that is defined within a specific function and is only accessible within that function. It cannot be accessed by other functions within the program.
In contrast, a global variable is a variable that is declared outside of any function, allowing it to be accessed by all functions in the program.