Skip to content

Instantly share code, notes, and snippets.

View abdoulayegk's full-sized avatar
🎯
Learning Data Science & machine learning

Abdoulaye Balde abdoulayegk

🎯
Learning Data Science & machine learning
View GitHub Profile
#include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
bool f(int x, int y) { return x > y; }
@abdoulayegk
abdoulayegk / Program52.py
Last active June 18, 2020 08:30 — forked from AmruthPillai/Program52.py
Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number.
"""
Working code
Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number.
"""
l = []
while True:
num = input("Enter a number:")
if num == 'done':
break
@abdoulayegk
abdoulayegk / Income prediction.ipynb
Created March 25, 2020 14:07
I build a Random Forest classifier, Logistic Regression, Decision Tree and SVM to predict whether a person makes over 50K a year.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.