Posts

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))