Python learning
27.2K subscribers
209 photos
8 videos
75 files
118 links
Learn pythonπŸ”₯
Quality content πŸ˜‰
Get Python Course 😁
Download Telegram
Run this code
Language Difficulty Guide πŸ™ŒπŸ»πŸ™ŒπŸ»
What do we use to define a block of
code in Python Programming
language?
Anonymous Quiz
22%
Brackets
21%
Curly braces
57%
Indentation
Top Programming Interview Questions and Answers (General)

Question: Please explain what you understand by computer programming.
Answer: Also known as coding or programming, computer programming is the process of encoding an algorithm into a notation, typically a computer program, by means of some programming language so that it can be executed by a computer.

Each programming language contains a set of instructions for the computer to execute a set of tasks. Programming is a complex process that includes designing an algorithm, coding the same in a programming language, debugging a program, maintaining, and updating the code.

Question: Can you enumerate and explain the various types of errors that can occur during the execution of a computer program?
Answer: Three types of errors can occur during the execution of a computer program. These are:

Logical errors – This occurs in the scenario of a computer program implementing the wrong logic. As there is no report generated for these types of programming errors, they are the most difficult ones to deal with.
Runtime errors – Occurs when the program contains an illegal operation. For example, dividing a number by 0. These are the only errors that are displayed instantly during the program execution. Upon the occurrence of a runtime error, the program execution is stopped and a diagnostic message is displayed.
Syntax errors – Occurs when one or more grammatical rules of the programming language being used is violated. Such errors are detected during compile time.

Question: Please explain an algorithm. What are some of its important features?
Answer: An algorithm can be defined as a set of finite steps that when followed helps in accomplishing a particular task. Important features of an algorithm are clarity, efficiency, and finiteness.

Question: What do you understand by maintaining and updating a computer program?
Answer: The maintenance and updating process of a computer program starts post its successful installation. While program maintenance is the continuous process of monitoring the computer program for bugs and errors, updating the computer program means making it better with minor and major changes over time.

Question: Please provide a brief explanation on variables.
Answer: Variables are used for storing the input of a program as well as the computational results during program execution. These are actually named memory locations. The value stored in a variable can change during the program execution.
World's Best IT Companies πŸ™ŒπŸ»πŸ™ŒπŸ»
Output of this Quiz πŸ‘‡

>>> print(int("12.0")*2)
Anonymous Quiz
35%
24
37%
Error
27%
24.0
This media is not supported in your browser
VIEW IN TELEGRAM
Bring back childhood memories😍. Tertis game using python. Source code πŸ‘‡πŸ‘‡
Run this code and send me output
Which of the following character is
used to give single-line comments in
Python?
Anonymous Quiz
20%
//
67%
#
3%
!
10%
/*
import turtle
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range (5):
turtle.pensize(2)
turtle.forward(size)
star(turtle, size/3)
turtle.left(216)
turtle.end_fill()
star(a, 360)
turtle.done()
Which collection does not allow
duplicate members?
Anonymous Quiz
47%
Tuple
43%
Set
10%
List
PythonProgrammingExercisesGentlyExplained.pdf
1.5 MB
Python Programming Exercises, 2022., gently explained
42 programming exercises on 160 pages with plain-English explanations


Exercise #1: Hello, World!
Exercise #2: Temperature Conversio
Exercise #3: Odd & Even
Exercise #4: Area & Volume
Exercise #5: Fizz Buzz
Exercise #6: Ordinal Suffix
Exercise #7: ASCII Table
Exercise #8: Read Write File
Exercise #9: Chess Square Color
Exercise #10: Find and Replace
Exercise #11: Hours, Minutes, Seconds
Exercise #12: Smallest & Biggest
Exercise #13: Sum & Product
Exercise #14: Average
Exercise #15: Median
Exercise #16: Mode
Exercise #17: Dice Roll
Exercise #18: Buy 8 Get 1 Free
Exercise #19: Password Generator
Exercise #20: Leap Year
And many more
How to Become Better in 2023πŸ™ŒπŸ»πŸ™ŒπŸ»πŸ™ŒπŸ»πŸ™ŒπŸ»
This media is not supported in your browser
VIEW IN TELEGRAM
Bring back childhood memories😍. Tertis game using python. Source code πŸ‘‡πŸ‘‡