python lab questions 1-75 pages
Base Conversions :
1.Convert any number to Binary
2.Convert any number to Octal
3.Convert any number to Hexadecimal
Type Casting :
Convert values from other types to int.
Convert values from other types to float.
Convert values from other types to complex.
Convert values from other types to boolean.
Convert values from other types to string.
Special Datatype :
Write a program on list datatype.
Write a program on tuple datatype.
Write a program on dictionary datatype.
Write a program on none datatype.
Write a program on range datatype.
Write a program on set datatype.
Write a program on frozenset datatype.
Write a program on byte datatype.
Write a program on bytearray datatype.
Escape Characters :
1.Write a program on Escape Characters.
Operators :
1.Write a program on Arithmetic operators.
2.Write a program on Relational operators.
3.Write a program on Equality operators.
4.Write a program on Logical operators.
5.Write a program on Bitwise operators.
6.Write a program on Shift operators.
7.Write a program on Assignment operators.
8.Write a program on Ternary operators.
9.Write a program on Identity operator
10.Write a program on Membership operators.
11.Write a program on Minimum of three numbers
12.Write a program on Maximum of three numbers
Input/ Output Statements :
1 .Write a program on raw input.
2.Write a program to read 2 numbers from the keyboard and print sum.
3. Write a program to read Employee data from the keyboard and
print that data.
4. How to read multiple values from the keyboard in a single line
5. Write a program to read 3 float numbers from the keyboard
with separator and print their sum.
6. Write a program on Eval () input.
Transfer Statements :
1.write a program on break statement.
2.To print odd numbers in the range 0 to 9 on continue statement
Command Line Arguments :
Write a Program to display the Command Line Argument.
usually space is separator between command line arguments.
Within the Python program command line arguments are available in the String form.
: If we are trying to access command line arguments with out of range index then we will get Error.
Conditional Statements :
Write a program on if statement.
Write a program on if else statement
Write a program on if elif else statement.
Write a program to find biggest of given 2 numbers from the commad prompt
Write a program to find biggest of given 3 numbers from the commad prompt?
Write a program to take a single digit number from the key board and print is value in English word?
Write a program to find smallest of given 2 numbers?
Write a program to find smallest of given 3 numbers?
Write a program to check whether the given number is even or odd?
Write a program to check whether the given number is in between 1 and 100
Iterative statements :
Write a program on for- loop
To print characters present in the given string
To print characters present in string index wise
To print Hello 10 times
To display numbers from 0 to 10
: To display odd numbers from 0 to 20
To display numbers from 10 to 1 in descending order
To print sum of numbers presenst inside list
To print numbers from 1 to 10 by using while loop
To display the sum of first n numbers
write a program to prompt user to enter some name until entering Durga
write a program on Nested loops
write a program on Infinite loops
Write a program to dispaly *'s in Right angled triangled form
Write a program to display *'s in pyramid style(also known as equivalent triangle
String Data Type :
Write a program to accept some string from the keyboard and display its characters by index wise(both positive and negative index)
Write a program to access each character of string in forward and backward direction by using while loop?
Write a program on comparison of strings.
Slicing of strings :
1.Write a program on string slicing perform various slicing operations
Comments
Post a Comment