Whatsapp bot to give programming codes
// C++ program to Count set
// bits in an integer
#include <bits/stdc++.h>
using namespace std;
/* Function to get no of set bits in binary
representation of positive integer n */
unsigned int countSetBits(unsigned int n)
{
unsigned int count = 0;
while (n) {
count += n & 1;
n >>= 1;
}
return count;
}
/* Program to test function countSetBits */
int main()
{
int i = 9;
cout << countSetBits(i);
return 0;
}
pip install selenium
pip install requests
pip install bs4
pip install keyboard
[For chrome browser] https://chromedriver.storage.googleapis.com/86.0.4240.22/chromedriver_win32.zip
Now set the PATH of this chrome web driver in environment variables (if did then comment line 7 and remove PATH from parameter in line 8
or edit the code, in line 7: PATH="paste here your chrome webdriver location"