Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

nth term of gp in python when 2,3 terms given

n1=int(input())
n2=int(input())
n=int(input())
r=n2/n1
a=n1/r
print(a*r**(n-1))
Comment

PREVIOUS NEXT
Code Example
Python :: what is primary key in python 
Python :: python message from byte 
Python :: instead of: newlist = [] for i in range(1, 100): if i % 2 == 0: newlist.append(i**2) 
Python :: pandas to sql arabic 
Python :: global variable not accessible withing thread 
Python :: limiting a for each loop python 
Python :: matplotlib pie chart move autotext 
Python :: attribute error rest framework 
Python :: get picamera feed 
Python :: how to make download link in Jupyter appmode 
Python :: long type python 
Python :: default python structure 
Python :: jupter notebook save session variables 
Python :: granges to string peak 
Python :: find max, min character 
Python :: convert json file to dict - if comming as list 
Python :: pyqt highlight all occurrences of selected word qt 
Python :: rename column in dataframe 
Python :: python tf.maximum 
Python :: discord py replace characters from string 
Python :: df.isna percentage 
Python :: deploy vue app to google cloud run 
Python :: how to do a python loop 
Python :: negative index python 
Python :: using return values python script in batch script 
Python :: Python Tkinter MenuButton Widget Syntax 
Python :: list of object in python 
Python :: how to run a string as a line of code in pytho 
Python :: how to strip characters in python 
Python :: Find From Table Django 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =