ICP2 - sandy777deep/PYTHON_WITH_DEEPLEARNING GitHub Wiki
ICP2
Class ID:30 , Group ID=11
Write a program, which reads weights (lbs.) of students into a list and convert these weights to kilograms in a separate list using:
- Loops and
- List comprehensions
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP2/ICP2.py
Write a program that returns every other char of a given string starting with first using a function named “string_alternative”
Str = “Good evening”
Output:Go vnn
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP2/stringAlternative.py
Write a python program to find the wordcount in a file for each line and then print the output.
Finally store the output back to the file.
Input:
a file includes two line
Python Course Deep Learning Course
Output:
Python: 1
Course: 2
Deep: 1
Learning: 1
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP2/readProgram.py