Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Find the 15th term of the series?0,0,7,6,14,12,21,18, 28

n = int(input())
ll = [0,0]
for i in range(n//2):
    ll.append(ll[-2] + 7)
    ll.append(ll[-2] + 6)
print(ll[n])
Comment

PREVIOUS NEXT
Code Example
Python :: We want to estimate the cost of painting a property. Interior wall painting cost is Rs.18 per sq.ft. and exterior wall painting cost is Rs.12 per sq.ft. 
Python :: python strip txt 
Python :: poset save @reciever created 
Python :: How to play audio in background 
Python :: matplotlib pie chart move autotext 
Python :: how to make levels in scratch 
Python :: create new column pandas and order sequence 
Python :: python min date from dictionary 
Python :: real python linear regression 
Python :: python making player equipment 
Python :: oaxaca 
Python :: arrays with name instead of index python 
Python :: python notification image 
Python :: count upercase 
Python :: arima A date index has been provided, but it has no associated frequency information and so will be ignored when e.g. forecasting 
Python :: python time-stamp conversion 
Python :: what modules are used for NLG in python 
Python :: python empty array length n grepper 
Python :: python autotrader web 
Python :: pandas melt and stack 
Python :: python RandomForest 
Python :: manipulation 
Python :: python for infinite range 
Python :: how to create sets in python 
Python :: Classe wrapper en python 
Python :: remot mouce use python 
Python :: how to connect presto from python 
Python :: Draw GFG Geeks For Geeks Logo using Python and Turtle 
Python :: Python | Program to print duplicates from a list of integers 
Python :: While Loop Python Range Staying Constant Despite Shrinking List 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =