Python Quick Guide
- Introduction to Python
- Compilation Process
- IDE
- Programming Process
- Logic and Syntax
- Loops
- Programming Codes
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
- Program to print
- Add Two Numbers
- Prime Number
- Factorial
- Simple Calculator
- Fibonacci Series
- Sorting
- Calender
- Multiply Matrix
- Set Operations
- Shuffle Cards
- Decimal to Binary
- Transpose
- Count Vowels
- ASCII Value
- HCF and LCM
- Armstrong Number
- Remove Punctuations
- Nested Multiplication
- Binary Conversion
- Hashing
HCF and LCM
To find the hcf and lcm
Code:
def computeHCF(x, y):
if x > y:
smaller = y
else:
smaller = x
for i in range(1, smaller+1):
if((x % i == 0) and (y % i == 0)):
hcf = i
return hcf
num1 = 54
num2 = 24
print("The H.C.F. of", num1,"and", num2,"is", computeHCF(num1, num2))
Then, Click on the run button.
JOIN TUTORIALS LINK
Our Newsletter Will Let You Know When Any New
Articles, Tutorials and Video Are Released.
CONTRIBUTE
MOBILE APP
Google Play
Copyright © 2024. All Rights Reserved.