Write the python program to input …

CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Har Har Mahadev 🙏 5 years ago
- 5 answers
First Name 5 years ago
s=1
for i in range (1,n+1):
⠀⠀⠀s=s+ sign*x**i
⠀⠀⠀s*= -1<br print("The sum of series is",s)
First Name 5 years ago
n = int(input("Enter the value of n : "))
sign= -1
s=1 for i in range(1,n+1): ⠀⠀⠀s=s+ sign*x**i
⠀⠀⠀s*= -1
print("The sum os the series is", s)
Related Questions
Posted by Jeevesh Jeevesh 1 year, 6 months ago
- 1 answers
Posted by Payal Kumari 1 year, 10 months ago
- 0 answers
Posted by Rupesh Rupesh 1 year, 10 months ago
- 2 answers
Posted by Catherine Tympuiñ 1 year, 5 months ago
- 1 answers
Posted by Vanshika Prajapati 1 year, 10 months ago
- 1 answers
Posted by Catherine Tympuiñ 1 year, 5 months ago
- 0 answers
Posted by M.Sameeha _ 1 year, 5 months ago
- 0 answers
Posted by Manasvi Bhutada 1 year, 6 months ago
- 1 answers

myCBSEguide
Trusted by 1 Crore+ Students

Test Generator
Create papers online. It's FREE.

CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
myCBSEguide
Har Har Mahadev 🙏 5 years ago
1Thank You