Monday, 4 May 2020
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Code:
class Solution:
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
g=0;
for i in ransomNote:
t=ransomNote.count(i);
...
Intersection of Two Arrays | Python
Author May 04, 2020 Python No comments
Check the problem statement here:
The intersection of Two Arrays:
https://leetcode.com/problems/interse...
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Code:
class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
output=[];
...
Jewels and Stones | Python
Author May 04, 2020 Python No comments
Prerequisites for solving this particular question:
String Immutability & count method | Python | Castor Classes
https://www.youtube.com/watch?v=Am1vX...
Iterate over a list & string | List in Python | Part 4 | Castor Classes
https://www.youtube.com/watch?v=4Zrfk...
You can get the problem statement here:
https://leetcode.com/problems/jewels-...
Python...
If Expressions in Python
Author May 04, 2020 Python No comments
Prerequisite:
if else command | Python
https://www.youtube.com/watch?v=9GJWK...
Java code used in this video:
import java.util.*;
public class Hello {
public static void main(String args[])
{
Scanner obj=new Scanner(System.in);
int x=obj.nextInt();
String s=(x%2==0)?"Even":"Odd";
System.out.println(s);
}
}
Python...
None value in Python
Author May 04, 2020 Python No comments
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Telegram: https://t.me/clcoding_python https://www.facebook.com/pirawenpython/ https://www.facebook.com/groups/piraw...
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle || []).push({})...
Sunday, 3 May 2020
Integer and Decimal value in C#
Irawen May 03, 2020 C# No comments
In this blog, we will discuss about
C# Integer Datatypes
C# Decimal Datatypes
C# Integer Datatypes :
We can only store whole number in them
Whole Number mean number without any decimal such as 34, 204, 35 etc
List of C# Integer...
Saturday, 2 May 2020
Prime Number of Set Bits in Binary Representation | Python
Author May 02, 2020 Python No comments
Prerequisite:
Brian Kernighan’s Algorithm | Python | Castor Classes
https://www.youtube.com/watch?v=DUSCd...
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Telegram: https://t.me/clcoding_python
https://www.facebook.com/pirawenpython/
(adsbygoogle = window.adsbygoogle || []).push({});
(adsbygoogle = window.adsbygoogle...
Last Stone Weight | Python
Author May 02, 2020 Python No comments
Code:
class Solution:
def lastStoneWeight(self, stones: List[int]) -> int:
while(len(stones)>1):
heaviest=max(stones);
stones.remove(heaviest);
heavier=max(stones);
stones.remove(heavier);
if(heaviest!=heavier):
stones.append(heaviest-heavier);
...
Move Zeroes | Python
Author May 02, 2020 Python No comments
Code:
class Solution:
def moveZeroes(self, nums: List[int]) -> None:
g=nums.count(0);
i=0;
while(i<g):
nums.remove(0);
nums.append(0);
i=i+1;
Python for beginners:
https://www.youtube.com/watch?v=egq7Z...
Telegram: https://t.me/clcoding_python
https://www.facebook.com/pirawenpython/...
Counting Elements | Python
Author May 02, 2020 Python No comments
Code :
class Solution:
def countElements(self, arr: List[int]) -> int:
output=0;
for i in arr:
if(i+1 in arr):
output+=1;
return output;
Python for beginners:
https://www.youtube.com/watch?v=egq7Z..
Telegram: https://t.me/clcoding_python
(adsbygoogle = window.adsbygoogle ||...
Program to find whether a no is power of two or not | Python
Author May 02, 2020 Python No comments
Prerequisite:
Data Type Conversion | Python | Castor Classes
https://www.youtube.com/watch?v=z8yw6...
Turn off the rightmost set bit | Python | Castor Classes
https://www.youtube.com/watch?v=ol4VW...
Relationship between binary representation of n & n-1 | Python | Castor Classes
https://www.youtube.com/watch?v=iTxc9...
Python for beginners:
https://www.youtube.com/watch?v=egq7Z..
Telegram:...
Friday, 1 May 2020
Python Input() Function
Irawen May 01, 2020 Python No comments

Input( )
Python provides us the facility to take input from user using Input( ) function. This function prompts the user to input a value.
For example :
Name = input("Enter Your Name");
print(Name);
Output will be the name as entered...
Thursday, 30 April 2020
Turn off the rightmost set bit | Python
Author April 30, 2020 Python No comments
Question:
Write a program that unsets the rightmost set bit of an integer.
Input: 12
Output: 8
Input: 7
Output: 6
Simple code:
n=int(input());
print(n & (n-1))
Prerequisite:
Data Type Conversion | Python | Castor Classes
https://www.youtube.com/watch?v=z8yw6...
Relationship between binary representation of n & n-1 | Python | Castor...
Popular Posts
-
While Excel remains ubiquitous in the business world, recent Microsoft feedback forums are full of requests to include Python as an Excel ...
-
Explanation try block: Python runs the code inside the try block first. print("Hello") executes normally, so it prints: Hel...
-
Line-by-line explanation: prod = getProd(4,5,2) This line is trying to call a function named getProd with arguments 4, 5, and 2. How...
-
This is a recursive function . It calculates the sum of all numbers from 1 to num. How does recursion work here? Let's see how sum(5...
-
Understanding the code: 1. range(0, 6, 4) This means: Start from 0, go up to (but not including) 6, and increment by 4. So, it genera...
-
Exploring Python Web Scraping with Coursera’s Guided Project In today’s digital era, data has become a crucial asset. From market trends t...
-
What happens: num = 6 A variable num is created and assigned the value 6. decrement(num) This calls the decrement function and pass...
-
Learning LangChain: Building AI and LLM Applications with LangChain and LangGraph LangChain is an open-source framework designed to simplif...
-
Step-by-step Explanation: playerScores = dict() Creates an empty dictionary named playerScores. Adding player scores: playerSc...
-
What’s happening here? fruits is a list of 5 string items. [ 'Python' , 'Py' , 'Anaconda' , 'CPython' , ...
Categories
100 Python Programs for Beginner
(98)
AI
(40)
Android
(24)
AngularJS
(1)
Api
(2)
Assembly Language
(2)
aws
(17)
Azure
(7)
BI
(10)
book
(4)
Books
(198)
C
(77)
C#
(12)
C++
(83)
Course
(67)
Coursera
(251)
Cybersecurity
(25)
Data Analysis
(3)
Data Analytics
(3)
data management
(11)
Data Science
(149)
Data Strucures
(8)
Deep Learning
(21)
Django
(16)
Downloads
(3)
edx
(2)
Engineering
(14)
Euron
(29)
Events
(6)
Excel
(13)
Factorial
(1)
Finance
(6)
flask
(3)
flutter
(1)
FPL
(17)
Generative AI
(11)
Google
(36)
Hadoop
(3)
HTML Quiz
(1)
HTML&CSS
(47)
IBM
(30)
IoT
(1)
IS
(25)
Java
(93)
Java quiz
(1)
Leet Code
(4)
Machine Learning
(85)
Meta
(22)
MICHIGAN
(5)
microsoft
(4)
Nvidia
(4)
Pandas
(4)
PHP
(20)
Projects
(29)
pyth
(1)
Python
(1055)
Python Coding Challenge
(461)
Python Quiz
(128)
Python Tips
(5)
Questions
(2)
R
(70)
React
(6)
Scripting
(3)
security
(3)
Selenium Webdriver
(4)
Software
(17)
SQL
(42)
UX Research
(1)
web application
(8)
Web development
(4)
web scraping
(2)