Posts

what is variable in python Interview question

 variable --variable is a container that store the data-- ---variable are used to hold data during execution of the programm example: a=5 a is variable which store 5

What is Data python Interview question

 Data is any piece of information which is used by the program to acomplish a task : - Example of task- Find the sum of two number:                                Find Lcm of two number:

How to develop a software using python

 How to develop a software  using python

Where python can be used

 Where python can be used 1) Developing websites 2) Task automation 3) Data Analysis 4) AI,ML,IOT 5)Developing desktop application

large organization that uses python ,python used in this big companies

 Amazing facts about python -- Ranked 1 (TIOBE report) #large organization that uses python Google Netflix Dropbox Youtube Instagram microsoft NASA facebook mozila amazon

Features of python

 Features of python 1)  Simple and straight forward syntax 2) platform independent 3) large library 4) precise coding 5) automatic memory management 6) highly extensible

Why you should learn python

 Why you should learn python  1) Huge community support 2) Future with Artificial Intelligence and machine learning 3) Easy to learn and implement

HIstory and version of python

- python was conceived in 1980 by Guido van  Rossum. #version  history python 1.0-- 1994 python 2.0--2000 python 3.0--2008 #latest version python 3.10.6--2 August 2022 #Name python python developers aim for it to be fun to use the name python is tribute to the British  comedy show monty python

Write a python script to print first 10 multiples of 5

  #. Write a python script to print first 10 multiples of 5 a=int(input( "Enter the number" )) i= 1 while i<= 10 :     print(a*i)     i+= 1    

Write a python script to print first N natural numbers

  Write a python script to print first N natural numbers a=int(input( "Enter the number" )) i= 1 while i<=a:     print(i)     i+= 1

Write a python script to print first N odd natural numbers

  #Write a python script to print first N odd natural numbers a=int(input( "Enter the number" )) i= 1 u= 0 while i<=a:     if i% 2 != 0 :      print(i)     i+= 1

Write a python script to print first N odd natural numbers in reverse order

  #Write a python script to print first N odd natural numbers in reverse order a=int(input( "Enter the number" )) i= 1 while a>=i:     if a% 2 != 0 :         print(a)     a-= 1

Interview question of list in python,practice question of list in python

  #Write a python program to store all the programming languages known to you using #Set a={ "python" , "java" , "javascript" , "c++" } print(type(a))   # Write a python program to store your own information {name, age, gender, so on..} a={ "rajendra" , 18 , "male" } print(a)   #Write a Python script to find if “Python” is present in the set thisset = {"Java", #"Python", "Django"} thisset={ "java" , "python" , "Django" } print( "python" in thisset) #Write a python program to add items from another set to the current set. thisset = #{"Java", "Python", "SQL"} #secondset= {"C", "Cpp", "NoSQL" a={ "java" , "python" , "sql" } b=( "c" , "cpp" , "nosql" ) print(a.union(b)) #Write a python program to add elements of list to a set #thisset = {...

Write a python script to store an octal number 125 in a variable and print it in binary format

# Write a python script to store an octal number 125 in a variable and print it in binary #format a= 0o 125 print(bin(a))

Write a python script to store a hexadecimal number 2F in a variable and print it in octal format.

  #. Write a python script to store a hexadecimal number 2F in a variable and print it in #octal format. a= 0x 2F print(oct(a))

Write a python script to store binary number 1100101 in a variable and print it in decimal format.

  #Write a python script to store binary number 1100101 in a variable and print it in #decimal format. a= 0b 1100101 print(a)

Write a python script to print any number and its octal equivalent.

  # Write a python script to print any number and its octal equivalent. a= 4 print(oct(a))

Write a python script to print any number and its binary equivalence

  #Write a python script to print any number and its binary equivalen a= 5 print(bin(a))

Write a python script to print Unicode of the character ‘m’

  # Write a python script to print Unicode of the character ‘m’ a= 'm' print(ord(a))

write a python script to convert a number into str type

  #write a python script to convert a number into str type a= 5 print(str(a))