Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

from the cmd Write a Python program to read the user input n from the cmd. (1) Put all the numbers of 21, 22, 23,

image text in transcribedfrom the "cmd"

Write a Python program to read the user input n from the cmd. (1) Put all the numbers of 21, 22, 23, ... etc until 2into the first tuple. Print out the tuple as follows. (2) Then append another number 2n+1 into this tuple. Print it out again. (3) insert 31, 32, 33, ... etc. until 3h into the first tuple (1) to make the following tuple. Print out the new tuple as follows. H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module3\assign3-3.py 4 The first tuple is: (2, 4, 8, 16) The second tuple is: (2, 4, 8, 16, 32) The third tuple is: (2, 3, 4, 9, 8, 27, 16, 81) H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module3\assign3-3.py 5 The first tuple is: (2, 4, 8, 16, 32) The second tuple is: (2, 4, 8, 16, 32, 64) The third tuple is: (2, 3, 4, 9, 8, 27, 16, 81, 32, 243)

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_2

Step: 3

blur-text-image_step3

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

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

ISBN: 321321367, 978-0321321367

More Books

Students also viewed these Databases questions