Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz do in python idle Task 1: Using len ( ) Function 1. Open a new Python file and name it builtin_functions.py. 2. Create a

plz do in python idle image text in transcribed
image text in transcribed
Task 1: Using len ( ) Function 1. Open a new Python file and name it "builtin_functions.py". 2. Create a string variable message and assign it any message of your choice. 3. Use the len () function to determine the number of characters in the message variable. 4. Print the length of the message with an appropriate message. Task 2: Using input ( ) Function 1. Create a new variable, user_name, and use the input ( ) function to ask the user for their name. 2. Store the user's input in the user_name variable. 3. Print a personalized greeting using the user_name variable. ask 4: Using sum ( ) Function 1. Create another list called grades (see code example above) containing the marks of five students (integer values). 2. Use the sum ( ) function to calculate the total marks of all the students in the grades list. 3. Print the total marks with a suitable message. 4. Print the average mark for the five students. Hint: Use the sum() functions and divide by the number of student grades in the list ask 5: Using round ( ) Function 1. Create a variable float_num and assign it any floating-point number. 2. Use the round () function to round the float_num to the nearest integer. 3. Print the rounded value with a suitable message

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

Relational Database Technology

Authors: Suad Alagic

1st Edition

354096276X, 978-3540962762

More Books

Students also viewed these Databases questions