- Explain for and while loop. Write a program to generate fibonacci series up to the given limit by defining fibonacci (n) function.
- Mention the advantage of continue statement. Write a program to compute only sum of even numbers within the natural number using continue statement.
- Define string. Illustrate how it can be traversed using for loop.
- What are string slices. Explain the slicing operator in python with examples.
- Write a python program to display presence of given substring in main string.
- How computational faults or computational errors are handled in python.
- Write a python program to copy all lines beginning with vowels from SAMPLE.txt to VOWEL.txt retaining other lines.
- With syntax, explain finite and infinite looping constructs in python. What is the need for break and continue statements.
- Write a python program to generate and print prime numbers between 2 to 100.
- Write a python program to count the number of occurrences of a given word in a file.
- Write a python program that takes decimal number as input and convert that to binary equivalent and return the same.
- List any five methods associated with strings and explain each of them with an example.
Saturday, April 4, 2020
Python Application Programming - Module 2 - 17CS664, 18CS55
Subscribe to:
Post Comments (Atom)
Database Management systems - Module 2
1 a. Explain the entity integrity and referential integrity constraints. Why is each considered important. Give examples. b. Discuss eq...
-
Module 1 Define IOT. Explain Evolutionary phases of the internet What is IOT? Explain in detail on Genesis of IOT. What does IOT and digi...
-
List the key features of Python Programming Language. What is the role of a programmer?. List at least two skills required to be a best ...
-
What is a class?. How to define a class in Python?. How to instantiate a class? How the members are accessed? Differentiate class varia...
No comments:
Post a Comment