forked from CinderZhang/FinnData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweek2.html
84 lines (70 loc) · 4.07 KB
/
week2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Week 2: Python Basics: Variables, Data Types, and Operations</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
</head>
<body>
<!-- Add the Back to Home button at the bottom as well -->
<div class="back-to-home">
<a href="index.html">← Back to Home</a>
</div>
<div class="container">
<h2>Week 2: Python Basics: Variables, Data Types, and Operations</h2>
<h3>Learning Objectives:</h3>
<ul>
<li>Understand variables and data types in Python.</li>
<li>Perform basic operations with variables.</li>
<li>Learn how to take input and produce output in Python programs.</li>
</ul>
<h3>Materials:</h3>
<h4>1. Variables in Python</h4>
<p>What are variables? How to declare and assign values to variables in Python.</p>
<a href="https://www.w3schools.com/python/python_variables.asp" target="_blank">Read more about Variables in Python</a>
<h4>2. Data Types in Python</h4>
<p>Understanding different data types in Python: integers, floats, strings, booleans.</p>
<a href="https://www.w3schools.com/python/python_datatypes.asp" target="_blank">Read more about Data Types in Python</a>
<h4>3. Basic Operations</h4>
<p>Performing arithmetic and logical operations with variables in Python.</p>
<a href="https://www.w3schools.com/python/python_operators.asp" target="_blank">Read more about Basic Operations in Python</a>
<h4>4. Input and Output in Python</h4>
<p>How to take input from the user and display output in Python programs.</p>
<a href="https://www.w3schools.com/python/python_user_input.asp" target="_blank">Read more about Input and Output in Python</a>
<h3>Exercises:</h3>
<ol>
<li>Create variables of different data types and perform operations on them.</li>
<li>Write a Python program that takes input from the user and displays it.</li>
<li>Practice type conversion by taking input as a string and converting it to an integer or float to perform arithmetic operations.</li>
<li>Write a Python program to calculate the area of a rectangle. Take the length and width as inputs from the user.</li>
<li>Create a simple calculator that can add, subtract, multiply, and divide two numbers entered by the user.</li>
<li>Write a Python program that takes a temperature in Celsius and converts it to Fahrenheit.</li>
<li>Write a Python program that reverses a string entered by the user.</li>
</ol>
</div>
<h3>Reminder:</h3>
<div id="ChatGPT Lead deep dive">
<h3>Every Week: Personalized Python Learning with ChatGPT Plus--10 or More prompts/convesations required on each topic</h3>
<p>Use the PROMPT to personalize your learning experience with ChatGPT Plus</p>
<a href="https://github.com/JushBJJ/Mr.-Ranedeer-AI-Tutor">ChatGPT Lead deep dive</a>
</div>
<div id="ChatGPT Assignment">
<h3>Every Week: Test your knowledge of Python weekly topics On ChatGPT Plus</h3>
<p>Use the PROMPT to test your knowledge and grade it by ChatGPT</p>
<a href="https://github.com/CinderZhang/FinnData/blob/main/chatGPT_AssignmentSample.md">ChatGPT Assignment</a>
</div>
<div style="text-align: center; margin-top: 20px;">
<a href="week1.html">← Previous Week</a>
|
<a href="week3.html">Next Week →</a>
</div>
<!-- Add the Back to Home button at the bottom as well -->
<div class="back-to-home">
<a href="index.html">← Back to Home</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</body>
</html>