Front Page f5132150
Front Page f5132150
ON
TITLE: __PRACTICLE FILE OF COMPUTER SCIENCE
Python Codes
Program1:. Program to enter two number and print
the arithmetic operations like +,-,*,/,// & %
INPUT:.
OUTPUT:.
Program 2:. Write a program to find whether an inputted
number is perfect or not.
INPUT:.
OUTPUT:.
Program3:. Write a program to check if entered number
is Armstrong or not.
INPUT:.
OUTPUT:.
Program4:. Write a Program to find factorial pf the
entered number.
INPUT:.
OUTPUT:.
Program5:.Write a program to enter the number of
terms and to print the Fibonacci series.
INPUT:.
OUTPUT:.
Program6:.Write a program to enter the string and to
check if it’s palindrome or not using loop.
INPUT:.
OUTPUT:.
Program7:. Write a program to show the outputs based
on entered list.
INPUT:.
OUTPUT:.
Program8:. Write a Program to enter the number in list
using split() and to use all the functions related to list.
INPUT:.
OUTPUT:.
Program9:. Write a Program to enter the number and
print the floyd’s triangle in decreasing order.
INPUT:.
OUTPUT:.
Program10:. Write a program to find factorial of
entered number using user-defined module fact().
INPUT:.
OUTPUT:.
INPUT:.
OUTPUT:.
INPUT:.
OUTPUT:.
INPUT:.
OUTPUT:.
INPUT:.
OUTPUT:.
MySQL Codes
Question :. Perform all the operations with reference to
table ‘Employee’ through MySQL-Python connectivity.
INPUT:.
Inserting a record in ‘emp’
Fetching all the records from EMP table
having salary more than 70000:.