Program to circulate the values of n variables in python


Asked by admin @ in Computer Science viewed by 3509 People


Ii)Write a python program to circulate the values of n variables.​

Answered by admin @


Answer:

mark as brainliest

Explanation:

# Circulate the values of n variables

no_of_terms = int(input("Enter number of values : "))

list1 = []

for val in range(0,no_of_terms,1):

   ele = int(input("Enter integer : "))

   list1.append(ele)

print("Circulating the elements of list ", list1)

   

for val in range(0,no_of_terms,1):

   ele = list1.pop(0)

   list1.append(ele)

   print(list1)

Answered by vignesh23 @


no_of_terms = int(input("Enter number of values : "))


list1 = []


for val in range(0,no_of_terms,1):


   ele = int(input("Enter integer : "))


   list1.append(ele)


print("Circulating the elements of list ", list1)


   


for val in range(0,no_of_terms,1):


   ele = list1.pop(0)


   list1.append(ele)


   print(list1)

Do you know the better answer?

Similar Questions

Find the distance in kilometers between two cities

Asked by maham237 @ in Mathematics viewed by 101 persons

Find the distance in km between the following pair of cities, assuming they lie on the same north-south line. The radius of the Earth is approximately 6400 km. City A, …

Partial fraction of x 2 x 2 2x 3

Asked by admin @ in Math viewed by 88 persons

Resolve 2x+3/x^2-2x-3 into partial fraction​

What, by consensus among economists, are the broad factors for economic growth?

Asked by maham237 @ in Business viewed by 101 persons

India's golden age began as a direct result of

Asked by maham237 @ in History viewed by 164 persons

India’s “Golden Age” began as a direct result of an increase in trade. a takeover of other Asian countries. a decrease in government dependence. the fall of the Mauryan empire.

If two groups of numbers have the same mean then

Asked by maham237 @ in Mathematics viewed by 86 persons

If two groups of numbers have the same mean, then a. their standard deviations must also be equal. b. their medians must also be equal. c. their modes must also …

Choose the equation below whose axis of symmetry is x = 2.

Asked by maham237 @ in Mathematics viewed by 118 persons

Choose the equation below whose axis of symmetry is x = 2. y = x2 + 4x + 2 y = x2 − 4 y = x2 − 2 y …

Nominations to the supreme court must be approved by a

Asked by admin @ in History viewed by 74 persons

A nomination to the Supreme Court must be approved by the a.President's Cabinet. b.Senate. c.House of Representatives. d.Chief Justice

How many two digit numbers are there in all

Asked by admin @ in Math viewed by 176 persons

How many 2-digit numbers are there in all?

One similarity between cell receptors and antibodies is that both

Asked by maham237 @ in Biology viewed by 95 persons

Earthquakes are especially associated with _____ boundaries.

Asked by maham237 @ in Biology viewed by 79 persons

Earthquakes are especially associated with _____ boundaries. divergent convergent transform fault

What technology do search engines use to crawl websites

Asked by admin @ in Computer Science viewed by 177 persons

What technology do search engines use to 'crawl' websites?

How many circles can be drawn through one points

Asked by admin @ in Math viewed by 157 persons

How many circles can be drawn passing through one given point .

0.1 mole of a carbohydrate with empirical formula ch2o

Asked by admin @ in Chemistry viewed by 117 persons

0.1 mole of a carbohydrate with empirical formula ch2o contains 1 g of hydrogen. What is its molecular formula

Strongest anime character

Asked by maham237 @ in Arts viewed by 33 persons

Who is the strongest anime character? Whhhhhhyyyyy

What is the full form of micr in computer

Asked by admin @ in Computer Science viewed by 121 persons

What is the full form of MICR in computer

118 dollars in pounds

Asked by maham237 @ in Mathematics viewed by 256 persons

A store sells almonds for $7 per pound, cashews for $10 per pound, and walnuts for $12 per pound. A customer buys 12 pounds of mixed nuts consisting of almonds, …

When the speed of a moving body is doubled

Asked by admin @ in Math viewed by 152 persons

When the speed of a moving body is doubled what will be the effect on its kinetic energy?​

What is the message conveyed in the lesson indigo

Asked by admin @ in English viewed by 102 persons

What message does the Indigo episode convey?​

Describe the process of fertilisation in human beings

Asked by admin @ in Science viewed by 107 persons

Explain the process of fertilisation in human beings

What are examples of unicellular filamentous and colonial green algae

Asked by admin @ in Biology viewed by 76 persons

Give examples for unicellular, colonial and filamentous algae.

Franklin roosevelt fireside chats

Asked by maham237 @ in History viewed by 164 persons

Why did roosevelt broadcast "fireside chats" ?

The blood pressure in the systemic arteries is greatest during

Asked by admin @ in Biology viewed by 113 persons

The blood pressure in the systemic arteries is greatest during

Antonym for once

Asked by maham237 @ in English viewed by 25 persons

Which is the closest antonym for the word spontaneous? Press enter to interact with the item, and press tab button or down arrow until reaching the Submit button once the …

A line which intersects a circle at two points

Asked by admin @ in Math viewed by 159 persons

A straight line intersecting a circle at two points is called​

Where is the dna in a prokaryote in a eukaryote

Asked by admin @ in Biology viewed by 78 persons

Where is the DNA in a prokaryote? in a eukaryote?

How much is 16 oz of cream cheese in grams

Asked by admin @ in Mathematics viewed by 77 persons

A 1-ounce serving of cream cheese contains 9.1 grams of saturated fat. How much saturated fat is in 15 ounces of cream cheese?

A company in maine sends lobsters to france. what is maine doing? check all that apply.

Asked by maham237 @ in Social Studies viewed by 83 persons

importing products practicing international trade exportating products participating in globalization specializing

What is the least common multiple of 10 and 14

Asked by admin @ in Mathematics viewed by 90 persons

What is the least common denominator of the fractions 7/10 and 9/14? Select one: A. 40 B. 56 C. 70 D. 84

What is the median of first 10 natural numbers

Asked by admin @ in Math viewed by 104 persons

What is the median of first 10 natural numbers

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 17100 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 11608 persons


Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 9084 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 8909 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 7702 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 6976 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 5705 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 4922 persons


Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4373 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4308 persons



Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 4050 persons


Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 3910 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 3908 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 3661 persons


Program to circulate the values of n variables in python

Asked by admin @ in Computer Science viewed by 3509 persons