Program to circulate the values of n variables in python


Asked by admin @ in Computer Science viewed by 4047 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)

Similar Questions

Python program to print first n numbers divisible by 5

Asked by admin @ in Computer Science viewed by 350 persons

Write a Python program using while loop first N numbers divisible by 5.

Evaluate the expression for the given value of the variable

Asked by admin @ in Mathematics viewed by 358 persons

Evaluate the expression for the given value(s) of the variables s=7 k=4 x=6 8 - k+ x

How to program a tic tac toe board in python

Asked by admin @ in Computers and Technology viewed by 327 persons

Write a program for TIC TAC TOE in PYTHON

Find the value of each variable in the parallelogram

Asked by admin @ in Math viewed by 399 persons

Find the value of each variable in the parallelogram.Give brief reasons.. plzz solve both A and e.​

Program to find greatest of three numbers in python

Asked by admin @ in Computer Science viewed by 336 persons

Write a program in python to find the greatest number among three numbers​

Write a program to calculate compound interest in python

Asked by admin @ in Physics viewed by 413 persons

Write a program in python to calculate the compound interest​

The rms value of current for a variable current

Asked by admin @ in Physics viewed by 382 persons

An alternating current is given by i= i1coswt + i2sinwt. The rms value of current is given by?

Write a program to display your name in python

Asked by admin @ in Computer Science viewed by 339 persons

Write a code in python to display your name and age.

Write a program to swap two numbers in python

Asked by admin @ in Computer Science viewed by 342 persons

Write a program is python to swap two numbers.

Find the value of n so that an 1

Asked by admin @ in Math viewed by 304 persons

Question 27 Find the value of n so that ( a^(n+1) + b^(n+1) ) / (a^n + b^n) may be the geometric mean between a and b. Class X1 - …

Bind function in python socket programming is used to

Asked by admin @ in Computer Science viewed by 378 persons

Bind() function in Python socket programming is used to: 1. Specify the port for service on the specified host2. Read data from the socket 3.Send data to the socket …

In riak key value datastore the variable w indicates

Asked by admin @ in Computer Science viewed by 741 persons

In Riak Key Value datastore, the variable 'W' indicates __________.

In freundlich isotherm the value of 1 n is

Asked by admin @ in Chemistry viewed by 332 persons

In Freundlich Adsorption isotherm, the value of 1/n is : (a) between 0 and 1 in all cases (b) between 2 and 4 in all cases (c) 1 in case …

Mode is the value of the variable which has

Asked by admin @ in Math viewed by 325 persons

mode is the value of the variable which has a) maximum frequency(b) minimum frequency(write the correct answer)​

Which of these values can a boolean variable contain

Asked by admin @ in Computer Science viewed by 276 persons

Which of these values can a boolean variable contain

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19012 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15786 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10957 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10392 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8715 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8124 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7833 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6475 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5781 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5680 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5466 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4973 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4963 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4677 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4479 persons