Posts

Showing posts with the label python interview questions 2022?

python interview questions 2022?

Image
  Top 100+ Python Interview Questions You Must Prepare In 2022 Basic Python Interview Questions for Freshers Q1. What is the difference between list and tuples in Python? LIST vs TUPLES LIST TUPLES Lists are mutable i.e they can be edited. Tuples are  immutable (tuples are lists which can’t be edited). Lists are slower than tuples. Tuples are faster than list. Syntax: list_1 = [10, ‘Chelsea’, 20] Syntax: tup_1 = (10, ‘Chelsea’ , 20) Q2. What are the key features of Python? Python is an  interpreted  language. That means that, unlike languages like  C  and its variants, Python does not need to be compiled before it is run. Other interpreted languages include  PHP  and  Ruby . Python is  dynamically typed , this means that you don’t need to state the types of variables when you declare them or anything like that. You can do things like  x=111  and then  x="I'm a string"  without error Python is well suited to ...