Skip to content

Isha139/PythonKickoff

Repository files navigation

PythonKickoff

This is my journey of Pyhton.

Day 1

Q1. Print statements, Variables, Data Types, Print sum, Operators, Type Conversion, Inputs

Q2. Write a program to input 2 numbers & print their sums

Q3. WAP to input side of a square & print its area

Q4. WAP to inpu 2 floating point numbers & print their average

Day 2

Q5. Strings

Day 3

Q5.(Contd..) String Function

Q6. WAP to input user's first name & print its length.

Q7.WAP to find occurence of '$' in a String.

Q8. Conditional Statements

Q9. WAP to input marks of students and include Conditional students to decide their grades.

Q10. WAP to check if a number entered by the user is odd or not.

Q11. WAP to find greatest of 3 numbers entered by the user.

Q12. WAP to check if a number is a multiply of 7 or not.

Day 4

Q13. Lists

Q14. Tuples

Q15. WAP to ask the user to enter names of their 3 favorite movies & store them in a list.

Q16. WAP to check if a list contains a palindrome of elements.

Q17. WAP to count the number of students with the "A" grade in the following tuple. [C, D, A, A, B, B, A]

Q18. Store the above values in a list & sort them from "A" to "D"

Day5

Q19. Dictionary

Q20. Sets

Q21. Store following word meanings in a python dictionary : table : “a piece of furniture”,“list of facts & figures” cat : “a small animal”

Q22. You are given a list of subjects for students. Assume one classroom is required for 1 subject. How many classrooms are needed by all students.”python”,“java”,“C++”,“python”,“javascript”,“java”,“python”,“java”,“C++”,“C”

Q23. WAP to enter marks of 3 subjects from the user and store them in a dictionary. Start with an empty dictionary & add one by one. Use subject name as key & marks as value.

Q24. Figure out a way to store 9 & 9.0 as separate values in the set.(You can take help of built-in data types)

Day 6

Q25. Loops (while)

Day 7

Q26. Print nos. from 1 to 100. / Print nos. from 100 to 1.

Q27. Print the multiplication table of a n.

Q28. Print the elements of the following list using a loop: [1, 4, 9, 16, 25, 36, 49, 64, 81,100]

Q30. Search for a number x in this tuple using loop: (1, 4, 9, 16, 25, 36, 49, 64, 81,100)

Q31. For Loop

Day 8

Q32. Print the elements of the following list using a loop.

Q33. Search for a number x in this tuple using loop.

Q34. range()

Q35. Print numbers from 1 to 100. Print numbers from 100 to 1. Print multiplication table of a number n.

Day 9

Q36. WAP to find the sum of firt n natural numbers. (using while)

Q37. WAP to find the factorial of first n numbers. (using for)

Q38. Functions in Python

Q39. WAF to print the length of a list.(list is the parameter). Q. WAF to print the elements of a list in a single line.(list is the parameter). Q. WAF to find the factorial of n. (n is the parameter). Q. WAF to convert USD to INR.

About

This is my journey of Pyhton.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages