Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create Python programs using the Python Module window and save them in one .py file (a) with the file name constructed from your last name

Create Python programs using the Python Module window and save them in one .py file

(a) with the file name constructed from your last name concatenated with the assignment name i.e. Assignment 2.1

(b) containing print statement to display the name of the assignment i.e. Assignment 2.1

(c) containing print statement to display the version of the Python

(d) containing print statement to display the name of the programmer (student)

(e) containing print statement to display the date when the assignment was uploaded

(f) for each problem within the assignment include print statement to display the problem number

(g) for each problem within the assignment include print statement to display the problem description

(h) for each problem within the assignment include print statement to display the initial values with the text Initial Value:

(i) for each problem within the assignment write a program and display the result with the text Result:

Make each program independent and do not reuse any values of variables from the previous programs!

1. Check if the first character of the first name Jim is the same as the first character of your name James (variables: firstName1, firstName2) (output variable: isItTrue)

2. Display the first character of the first name Jim with the last name Doe i.e. as J. Doe (variables: firstName, lastName) (output variable: name)

3. Check if the length of the first name Jim is the same as the length of your name James (variables: firstName1, firstName2) (output variable: isItTrue)

4. Create a list of Jims scores that are 99, 77, 19, 80, and 100. Jim took a next test and got 98. Update the list. (variables: scores, score1) (output variable: scores)

Create a list of Jims scores that are 99, 77, 19, 80, 100 and 98. Jim took a makeup for third quiz and got 90. Update the list. (variables: scores, score2) (output variable: scores)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions