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
import numpy as np | |
import pandas as pd | |
eps = np.finfo(float).eps | |
from numpy import log2, log | |
df = pd.read_csv('data.csv', sep = ',') | |
#this code I used for only values of entropy of target and all features of data. | |
entropy_node = 0 #initilaize entropy | |
values = df.Target.unique() |
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
"""Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old."""" | |
name = input("Enter your name: ") | |
age = int(input("Enter your age: ")) | |
turn_100 = (2020 + (100 - age)) | |
print("Your will turn 100 in year ",turn_100) |