- Homework for 3.1 Javascript
- 3.1 Hwork Python
- 3.1 Hacks python
- 3.1 Hacks Javascript
- 3.2 Hack Javascript
- 3.2 Hack
- 3.2 Nolan Assignment Javascript
- 3.2 Homework Javascript
- 3.2 Homework Python
- Blog Your Experiences
Homework for 3.1 Javascript
let gog = "kush";
let age = 15;
let float = 555.555;
let fav_food = "sushi";
let FavHooby = "soccer";
let favcolor = "blue";
let urmom = ["kush kahria", 15, 555.555];
let urohtermom = {
name: "kushkhari",
age: 15,
favorite_number: 555.555,
}
3.1 Hwork Python
# Create 3 Variables
my_name = "John" # String Variable
my_age = 30 # Integer Variable
my_favorite_number = 7.5 # Float Variable
favorite_food = "Pizza" # snake_case
FavoriteHobby = "Reading" # PascalCase
favorite_color = "Blue" # camelCase
my_list = [my_name, my_age, my_favorite_number] # List
my_dictionary = { # Dictionary
"name": my_name,
"age": my_age,
"favorite_number": my_favorite_number
}
print(my_list)
print(my_dictionary)
3.1 Hacks python
urmom = len("Kharia)
print(urmom)
urothermom = "Kush" + "Kharia"
print(urothermom)
urnotsofather = urothermom[2:6]
print(urnotsofather)
3.1 Hacks Javascript
let urmom = "Kharia".length;
console.log(urmom);
let urothermom = "Kush" + "Kharia";
console.log(urothermom);
let urnotsofather = urothermom.slice(2, 6);
console.log(urnotsofather);
3.2 Hack Javascript
let isSunny = true;
console.log(isSunny); // -> true
isSunny = false;
console.log(isSunny); // -> false
3.2 Hack
import json
ferrari_f8 = {
"name": "Ferrari F8",
"performance": {
"engine": "3.9-liter V8",
"horsepower": 710,
"acceleration": "0 to 100 km/h in 2.9 seconds",
"top_speed": "over 340 km/h"
},
"features": {
"aerodynamics": "enhanced",
"stability_technologies": "state-of-the-art",
"stability_control": "outstanding during high-speed maneuvers"
},
"pricing": {
"original_price": "$250,000",
"production_run": 10,
"rarity": "exclusive among supercar collectors"
}
}
json_string = json.dumps(ferrari_f8)
print(json_string)
3.2 Nolan Assignment Javascript
// Create a dictionary (object) with different types of variables
let carInfo = {
name: "Tesla Model S",
performance: {
engine: "Electric",
horsepower: 1020,
acceleration: "0 to 60 mph in 1.99 seconds",
topSpeed: "200 mph"
},
features: {
aerodynamics: "streamlined",
stabilityTechnologies: ["autopilot", "traction control", "adaptive suspension"]
}
};
// Change keys in the object and in the list
carInfo.modelName = carInfo.name; // Changing 'name' to 'modelName'
delete carInfo.name; // Deleting the old key
carInfo.features.stabilityTechnologies[0] = "full self-driving"; // Changing a key in the list
// Convert the object to JSON
let jsonString = JSON.stringify(carInfo);
// Log the JSON string
console.log(jsonString);
3.2 Homework Javascript
let bookData = `{
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald",
"published_year": 1925,
"genres": ["Fiction", "Classic", "Literature"],
"available": true,
"ratings": {
"average": 4.5,
"reviews": 1200
}
}`;
// Load the JSON data
let book = JSON.parse(bookData);
// Edit the JSON data
book.title = "The Great Gatsby (Revised Edition)"; // String
book.published_year = 2023; // Integer
book.genres.push("American Literature"); // List
book.available = false; // Boolean
book.ratings.average = 4.7; // Float
// Convert back to JSON
let updatedJson = JSON.stringify(book, null, 4);
console.log(updatedJson);
3.2 Homework Python
import json
# Sample JSON data
book_data = '''
{
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald",
"published_year": 1925,
"genres": ["Fiction", "Classic", "Literature"],
"available": true,
"ratings": {
"average": 4.5,
"reviews": 1200
}
}
'''
# Load the JSON data
book = json.loads(book_data)
# Edit the JSON data
book["title"] = "The Great Gatsby (Revised Edition)" # String
book["published_year"] = 2023 # Integer
book["genres"].append("American Literature") # List
book["available"] = False # Boolean
book["ratings"]["average"] = 4.7 # Float
# Convert back to JSON
updated_json = json.dumps(book, indent=4)
print(updated_json)
My group did 3.3 and 3.5 which was Mathematical Operators and Boleans respectivly
I have been preparing for the college board exam by having a deeper understanding of mathematical operators and boleans through the presentation we had to do. I have made separate areas on my blog relating to each of the lessons taught to me by others and have summaries about each lesson, the homework, and the popcorn hacks for the specified lesson.
A highlight of our presentation was our use of analogies to explain difficult topics and the choice to do optional quizes if further understanding and learning was needed. My contribution to the presentation was that I designed the 3.3 lessons plan and me and ahmad worked on the hacks for 3.3 together.
something impactful i learned from another group was how to make a list in python which was presented by Nolan’s group. Lists are helpful in college board because they help store lots of information in a single line without usng multiple variables and you can edit and move around things in a list
By intentionally focusing on strengthening my foundational understanding rather than relying on ChatGPT for coding, I was able to make this sprint on Big Ideas uniquely my own. We established themes that adhered to the guidelines of our notebook, ensuring our work didn’t overlap with Mr. Mort’s. Additionally, we developed engaging quizzes that would captivate our audience during the presentations!