Computer Science, asked by tvahulthasan, 4 months ago

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

Answers

Answered by meenameena45
16

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 crkavya123
0

Answer:

A high-level, all-purpose programming language is Python. Code readability is prioritized in its design philosophy, which makes heavy use of indentation.

Python uses garbage collection and has dynamic typing. It supports a variety of programming paradigms, including procedural, object-oriented, and functional programming as well as structured programming (especially this). Due to its extensive standard library, it is frequently referred to as a "batteries included" language.

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)

learn more about it

brainly.in/question/17192176

brainly.in/question/8634528

#SPJ2

Similar questions