Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python list and give it the name of strName. Assign each letter in your name. Here is an example: strName=[ y, a, v,

Write a Python list and give it the name of strName. Assign each letter in your name. Here is an example: strName=[ "y", "a", "v", "u", "z", "s", "e", "l", "i", "m"]

Question 1 Using List Items in Python. Please write the results. >>len(strName). >>strName[0]. >>strName[len(strName)-1]. >>strName[len(strName)]

>>strName(0). >>strName[1]

Question 2 Write a for loop in Python to print each item of strName. Question 3 Write a while loop in Python to check each item of strName and print only the first three letters.

Write a Python code that print the course name.

Please write the results: >> numericValue = 10

>> numericValue = numericValue + numericValue >> print(numericValue)

>> strValue = 10 >> strValue = strValue + strValue >> print(strValue)

>> numericValueNew = 20. >> numericValueNew += 10 >> print(numericValueNew)

>> numericValueNew = 20 >> numericValueNew -= 10. >> print(numericValueNew)

>> numericValueNew = 20. >> numericValueNew *= 10. >> print(numericValueNew)

please do not send mixed :)

thank you

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_2

Step: 3

blur-text-image_3

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

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

Students also viewed these Databases questions