How would you define a block in python?



How would you define a block in python?..

Answer / Navjot Singh

A block in Python refers to a set of indented statements that are executed together. Blocks can be defined using the colon (:) and the indentation level.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How do I make python scripts executable?

1 Answers  


What does exit () do in python?

1 Answers  


What is super () in python?

1 Answers  


How many constructors can a class have?

1 Answers  


Is print a function in python?

1 Answers  


Is python object-oriented? What is an object-oriented programming

1 Answers  


What is monkey Patching in python?

1 Answers  


What is subclass in python?

1 Answers  


What is python used for today?

1 Answers  


What is tkinter?

1 Answers  


Rules for local and global variables in python?

1 Answers  


What does map function in python do?

1 Answers  


Categories