Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Filename: assign3-3.py 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 transcribed

3. Filename: assign3-3.py Write a Python program to read the user input n from the cmd. (1) Put all the numbers of 21, 22, 23, ... etc until 2" into 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: 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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions