Before performing any mathematical operations in binary, it is crucial to understand how binary numbers interact with each other. For instance, when subtracting binary numbers, it is essential to know that 0-0 equals 0, 1-1 equals 0, 0-1 equals 1, and 1-0 equals 1. Failure to understand these rules can make it impossible to perform accurate calculations. To determine the difference between two binary numbers, one can use the binary subtraction method, which requires borrowing 1 from the next higher bit when the minuend digit is less than the corresponding subtrahend digit. Similarly, when multiplying two binary numbers, one can use the binary multiplication method by multiplying each bit of the multiplier with every bit of the multiplicand and adding the results. For binary division, the binary division method is used, which involves subtracting the divisor from the dividend repeatedly while shifting both the quotient and remainder to the left until the remainder is less than the divisor. In binary arithmetic, specific rules must be followed, such as carrying over 1 to the next higher bit if the sum of two binary digits is 2 and using the two's complement of a binary number to represent negative values.

picture 1

picture 2

My mistake for this question was not clearly reading the question, because i should have wrote inhibition not inhibiting.

import pandas as pd
df = pd.read_csv("files/random_numbers_1000.csv")
# Compute the mean of the original data
mean_original = df["number"].mean()

# Apply the stipulations to modify the data
count_first_criteria = 0
for i, row in df.iterrows():
    # Check if the number is odd
    if row["number"] % 2 == 1:
        continue

    # Increment count if the number is even
    count_first_criteria += 1

    # Check if the number is divisible by 5
    if row["number"] % 5 == 0:
        row["number"] *= 2

    # Update the DataFrame
    df.iloc[i] = row

# Compute the mean of the modified data
mean_modified = df["number"].mean()

# Print out the results
print("Mean of original data:", mean_original)
print("Mean of modified data:", mean_modified)
print("Count of even numbers:", count_first_criteria)
Mean of original data: 0.4904628425744203
Mean of modified data: 0.4904628425744203
Count of even numbers: 1000

By arranging logic gates in different configurations, computer functions like addition, subtraction, multiplication, and division can be performed. The gates operate on binary inputs and produce binary outputs by following predetermined logical rules.

The manipulation of true and false values is known as Boolean operations, whereas logic gates are physical circuits or devices used to implement Boolean functions. This means that Boolean operations are theoretical in nature, while logic gates are their practical implementation.

picture 3

This quiz was pretty easy and I struggled on question 4, but i was able to overcome the challenge and came out successful

picture 4

picture 5

One hosting service website other than Github's is Heroku. One advantage of Heroku is its ease of use and flexibility. It allows developers to deploy and manage applications in various programming languages, including Ruby, Node.js, Java, Python, and more. Heroku also offers features such as automated scaling, continuous integration, and add-ons for various third-party services. Additionally, Heroku provides a free tier that allows users to deploy and run applications without any cost, making it an excellent choice for developers who want to experiment and learn without any financial commitment.

import pandas as pd

data = {
    'Name': ['Dillon', 'Noor', 'Steven', 'Lucas', 'Harsha', 'Varalu', 'Ryan', 'Emaad'],
    'Age': [24, 31, 42, 27, 29, 26, 90, 15],
    'Gender': ['M', 'M', 'M', 'M', 'F', 'F', 'F', 'F'],
    'Grade': ['A', 'B', 'A', 'D', 'C', 'F', 'B', 'A']
}
df = pd.DataFrame(data)

# Get summary statistics of the Age column
age_summary = df['Age'].describe()
print(age_summary)

# Count the number of rows for each Grade
grade_counts = df['Grade'].value_counts()
print(grade_counts)

# Filter the DataFrame to only include females
female_df = df[df['Gender'] == 'F']
print(female_df)
count     8.000000
mean     35.500000
std      23.268618
min      15.000000
25%      25.500000
50%      28.000000
75%      33.750000
max      90.000000
Name: Age, dtype: float64
A    3
B    2
D    1
C    1
F    1
Name: Grade, dtype: int64
     Name  Age Gender Grade
4  Harsha   29      F     C
5  Varalu   26      F     F
6    Ryan   90      F     B
7   Emaad   15      F     A