- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This is a Python Program to find the largest number in a list.
The program takes a list and prints the largest number in the list.
- Take in the number of elements and store it in a variable.
- Take in the elements of the list one by one.
This is a Python Program to find the Second largest number in a list.
The program takes a list and prints the Second largest number in the list.
- Take in the number of elements and store it in a variable.
- Take in the elements of the list one by one.
This is a Python Program to find the Smallest number in a list.
The program takes a list and prints the smallest number in the list.
- Take in the number of elements and store it in a variable.
- Take in the elements of the list one by one.
This is a Python Program to find the Second Smallest number in a list.
The program takes a list and prints the second smallest number in the list.
- Take in the number of elements and store it in a variable.
- Take in the elements of the list one by one.
- Sort the list in ascending order.
- Print the last element of the list.
- Read input number asking for length of the list using input()
- Initialise an empty list lst = [].
- Read each number using a for loop.
- In the for loop append each number to the list.
- Now we use predefined function sum() to find the sum of all the elements in a list.
- Print the result.
This is a Python Program to Calculate the Average of Numbers in a Given List.
The program takes the elements of the list one by one and displays the average of the elements of the list.
- Take the number of elements to be stored in the list as input.
- Use a for loop to input elements into the list.
- Calculate the total sum of elements in the list.
- Divide the sum by total number of elements in the list.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ! Comparison Operators and Conditonal Logic | |
let n = 7; | |
if (n <10) { | |
console.log("n is smaller than 10"); | |
} else if(n < 20) { | |
console.log("n is smaller than 20"); | |
} else { | |
console.log("n is greater than 10"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for loop | |
for (let i=0; i<=10; i++) { | |
console.log(i); | |
} | |
// Another Way | |
let i; | |
for (i=0; i<=10; i++) { | |
console.log(i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ! Inro To Array in JS | |
/* | |
All Arrays are untyped,so you can put everything you want in an Array. | |
In addition to objects, the array data is ordered by indexes. | |
Arrays are actually objects, having the indexes (numbers from 0 to legnth - 1) as keys. | |
*/ | |
// Creating Simple Array | |
let names = ['adib', 'sajib', 'jubayer', 'abir']; |
OlderNewer