
After gaining relevant information about Python, start writing programs in Python, assuming
that you all have written the basic hello world
how Python works.
Perform the programs given below take screen shot of your programs and its output paste it in
word file and upload it in due time. Save your word file by you name followed by lab task
number e.g abc lab task 1. Do add references in case of any online resources you have used.
In the next lab class, I will take a short viva from this lab and I can ask anyone to run their
programs.
1. Write a small program in Python to print your CV.
2. Write a program that takes the month (1…12) as input. Print whether the season is
summer, winter, spring or autumn depending upon the input month.
3. To determine whether a year is a leap year, follow these steps:
i. If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5.
ii. If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4.
iii. If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5.
iv. The year is a leap year (it has 366 days).
v. The year is not a leap year (it has 365 days).
Write a program to input a year as integer. Using if…else, determines whether
the input is a leap year or not.
4. Write a program that takes a line as input and finds the number of letters and digits in the
input
5. Write a program that takes a sentence as input. Compute the frequency of each words and
prints them.

Step by stepSolved in 2 steps with 1 images

- Coding in python Please!!I need help please help me in the easiest way to do this coding question. Please do not post it's answer from chegg just use your own skills to write code in easyiest way possible. I will really appriciate your help. Coding language PYTHON : The purpose of this assignment is to help you get comfortable creating and using simple classes and objects. In this assignment, we wish to model a 2-D video game character’s movements. In particular, suppose we are creating a tiny game, where the character can occupy one of 25 squares, like so: The first thing we need to keep track of is the character’s name, so we can differentiate this character from other characters or enemies. The other thing we need to keep track of is the character’s position, i.e., which square they are in. In order to do this, we’ll use an X-Y coordinate system with the origin in the top left corner (the 0,0 square in the picture). So, in the picture, the character occupies square 3, 2;…arrow_forwardlanguage is C++ Use Lastname First name, JonnyEnglish Instructions 1. Using Visual Studio, or Xcode, create a new empty project in your working drive. Name the Project: 05LastFirst (NOTE: where LastFirst is your actual Lastname and Firstname. For Example, if your name is Mary Smith then your empty project folder will be named 02SmithMary) 2. You will be updating your 05CH3 program. You will develop an Algorithm and then update your C++ Program for the problem described below: Have the user input test grades UNTIL user enters a negative number. The program will: list the number of grades entered, list the number of passing grades (>= 60) total all the grades, and then display the average of the grades. For example: Enter score 1: 88.8 Enter score 2: 50 Enter score 3: 100 Enter score 4: 100 Enter score 5: -1 Total number of grades: 4 Total number of passing grades: 3 Total: 338.8 Average: 84.7 (NOTE: Follow the steps below in creating your Algorithm and C++ Program.…arrow_forwardLab Tasks – complete these Use the information provided here, in the slideshow and in chapter 12 of our text to do the following exercise. Step 1: On the desktop or wherever you will be saving your java program, use notepador other basic text editor (NOT WORD) to create a .txt file. In this file, type out a list of 10 integers (one on each line or with a space between each). Save. Do this manually. Not with Java. Step 2. Now write a program with the following: 1) In the program creating a File object that connects to the .txt file that you just created. 2) Add code that will check if the file exists and if it doesn’t, it will create it. (Yes, we know it definitely exists but do this part anyway.) 3) Set up a Scanner so that you can read the values from the file and print them to the screen using a loop. You will probably need to use the .hasNext() method. Also, you may want to set up a counter to keep track of how many values there are for future use. (Note that the .length()…arrow_forward
- Please help me with these question. I am having trouble understanding what to do. Please use HTML, CSS, and JavaScript Thank youarrow_forwardPython Soulution to 1arrow_forwardYou guys giving me AI answer. Don't post AI generated answer or plagiarised answer. If I see these things I'll give you multiple downvotes and will report immediately.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





