File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 25
25
"metadata" : {},
26
26
"outputs" : [],
27
27
"source" : [
28
- " # Code Needed\n " ,
29
- " # Create salary_calculator.py with the following content\n " ,
30
- " def calculate_annual_salary(hourly_wage, hours_per_week):\n " ,
31
- " return hourly_wage * hours_per_week * 52"
28
+ " %%writefile salary_calculator.py\n " ,
29
+ " # write content of the cell to module salary_calculator"
32
30
]
33
31
},
34
32
{
47
45
" ## 🟨 Filter Job Postings by Location (1.18.2)"
48
46
]
49
47
},
48
+ {
49
+ "cell_type" : " code" ,
50
+ "execution_count" : null ,
51
+ "id" : " 50c82097" ,
52
+ "metadata" : {},
53
+ "outputs" : [],
54
+ "source" : [
55
+ " %%writefile job_filter.py\n " ,
56
+ " # write content of the cell to module job_filter"
57
+ ]
58
+ },
50
59
{
51
60
"cell_type" : " code" ,
52
61
"execution_count" : null ,
55
64
"outputs" : [],
56
65
"source" : [
57
66
" # Code Needed\n " ,
58
- " # Create job_filter.py with the following content\n " ,
59
- " def filter_by_location(job_postings, location):\n " ,
60
- " return [job for job in job_postings if job['location'] == location]\n " ,
61
- " \n " ,
62
67
" job_postings = [\n " ,
63
68
" {'title': 'Data Scientist', 'location': 'New York'},\n " ,
64
69
" {'title': 'Data Analyst', 'location': 'San Francisco'},\n " ,
75
80
]
76
81
}
77
82
],
78
- "metadata" : {},
83
+ "metadata" : {
84
+ "language_info" : {
85
+ "name" : " python"
86
+ }
87
+ },
79
88
"nbformat" : 4 ,
80
89
"nbformat_minor" : 5
81
90
}
You can’t perform that action at this time.
0 commit comments