Docsity

Python Programming: Data Types, Strings, Lists, Tuples, Dictionaries, Conversions, Classes, Assignments of Computer science

Toggle sidebar
bg1
1. Write a program to demonstrate different number data types in Python.
2. Write a program to perform different Arithmetic Operations on numbers in Python.
3. Write a program to create, concatenate and print a string and accessing sub-string from a given
string and other string operations
4. Write a program to create, append, and remove lists in python.
5. Write a program to demonstrate working with tuples in python.
6. Write a program to demonstrate working with dictionaries in python.
7. Write a Python function to convert temperatures to and from Celsius, Fahrenheit.
8. Write a Python program to construct the following pattern, using a nested
for loop
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
9. Write a Python class to convert an integer to a roman numeral.
10. Write a Python class to reverse a string word by word.

Partial preview of the text

Download Python Programming: Data Types, Strings, Lists, Tuples, Dictionaries, Conversions, Classes and more Assignments Computer science in PDF only on Docsity!

  1. Write a program to demonstrate different number data types in Python.
  2. Write a program to perform different Arithmetic Operations on numbers in Python.
  3. Write a program to create, concatenate and print a string and accessing sub-string from a given string and other string operations
  4. Write a program to create, append, and remove lists in python.
  5. Write a program to demonstrate working with tuples in python.
  6. Write a program to demonstrate working with dictionaries in python.
  7. Write a Python function to convert temperatures to and from Celsius, Fahrenheit.
  8. Write a Python program to construct the following pattern, using a nested for loop





  1. Write a Python class to convert an integer to a roman numeral.
  2. Write a Python class to reverse a string word by word.