Code:
a=int(input('Enter the first term'));
b=int(input('Enter the second term'));
N=int(input('Enter the n value')); # 2 4 8 16 32
r=b/a;
s=a*r**(N-1);
print(s);
Prerequisite:
Power of a number | Python | Castor Classes
https://www.youtube.com/watch?v=omFAv...
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Thursday, 7 May 2020
Popular Posts
-
Explanation The first step in understanding what is going on in this wacky code is to take a look at what has to say about using return w...
-
Here’s a list of 10 everyday problems Python can solve in under 10 lines of code : 1. Generate Strong Passwords import random import string...
-
Explanation The code in this quiz is tricky! Here you are modifying the list that the generator wants to use. Here is the key to understan...
-
Python Programming Bootcamp: Master the Essentials and Beyond Duration 4 weeks (February 2025) Format Online : Live sessions via Zoom/Goog...
-
Explanation: numbers = [1, 2, 3] A list [1, 2, 3] is created and assigned to the variable numbers. integers = numbers The variable integer...
-
Explanation If you read through , which defines assignment expressions, you’ll see a section called Exceptional cases, which has an exampl...
-
Explanation Input Lists : a is a list of integers: [1, 2, 3] b is a list of strings: ['x', 'y', 'z'] zip Function...
-
14 Foundational Concepts Every Python Programmer Should Master Python, a versatile and beginner-friendly language, offers a plethora of fe...
-
1. Python by Microsoft The official extension for Python in VS Code. Features: Syntax highlighting. IntelliSense for code completion. Lint...
Categories
100 Python Programs for Beginner
(96)
AI
(38)
Android
(24)
AngularJS
(1)
Assembly Language
(2)
aws
(17)
Azure
(7)
BI
(10)
book
(4)
Books
(186)
C
(77)
C#
(12)
C++
(83)
Course
(67)
Coursera
(246)
Cybersecurity
(25)
Data Analysis
(1)
Data Analytics
(2)
data management
(11)
Data Science
(138)
Data Strucures
(8)
Deep Learning
(21)
Django
(14)
Downloads
(3)
edx
(2)
Engineering
(14)
Euron
(22)
Excel
(13)
Factorial
(1)
Finance
(6)
flask
(3)
flutter
(1)
FPL
(17)
Generative AI
(6)
Google
(34)
Hadoop
(3)
HTML Quiz
(1)
HTML&CSS
(47)
IBM
(30)
IoT
(1)
IS
(25)
Java
(93)
Java quiz
(1)
Leet Code
(4)
Machine Learning
(75)
Meta
(22)
MICHIGAN
(5)
microsoft
(4)
Nvidia
(4)
Pandas
(4)
PHP
(20)
Projects
(29)
Python
(978)
Python Coding Challenge
(421)
Python Quiz
(64)
Python Tips
(3)
Questions
(2)
R
(70)
React
(6)
Scripting
(1)
security
(3)
Selenium Webdriver
(4)
Software
(17)
SQL
(42)
UX Research
(1)
web application
(8)
Web development
(4)
web scraping
(2)
0 Comments:
Post a Comment