Skip to content

Commit 2f06722

Browse files
committed
day 15
1 parent d3b2c89 commit 2f06722

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

15_Day/15_day_classes.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -679,18 +679,18 @@ Now, the getPersonInfo method has been overridden and it identifies if the perso
679679
```JS
680680
ages = [31, 26, 34, 37, 27, 26, 32, 32, 26, 27, 27, 24, 32, 33, 27, 25, 26, 38, 37, 31, 34, 24, 33, 29, 26]
681681

682-
console.log('Count:', statistics.count()) # 25
683-
console.log('Sum: ', statistics.sum()) # 744
684-
console.log('Min: ', statistics.min()) # 24
685-
console.log('Max: ', statistics.max()) # 38
686-
console.log('Range: ', statistics.range() # 14
687-
console.log('Mean: ', statistics.mean()) # 30
688-
console.log('Median: ',statistics.median()) # 29
689-
console.log('Mode: ', statistics.mode()) # {'mode': 26, 'count': 5}
690-
console.log('Variance: ',statistics.var()) # 17.5
691-
console.log('Standard Deviation: ', statistics.std()) # 4.2
692-
console.log('Variance: ',statistics.var()) # 17.5
693-
console.log('Frequency Distribution: ',statistics.freqDist()) # [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)]
682+
console.log('Count:', statistics.count()) // 25
683+
console.log('Sum: ', statistics.sum()) // 744
684+
console.log('Min: ', statistics.min()) // 24
685+
console.log('Max: ', statistics.max()) // 38
686+
console.log('Range: ', statistics.range() // 14
687+
console.log('Mean: ', statistics.mean()) // 30
688+
console.log('Median: ',statistics.median()) // 29
689+
console.log('Mode: ', statistics.mode()) // {'mode': 26, 'count': 5}
690+
console.log('Variance: ',statistics.var()) // 17.5
691+
console.log('Standard Deviation: ', statistics.std()) // 4.2
692+
console.log('Variance: ',statistics.var()) // 17.5
693+
console.log('Frequency Distribution: ',statistics.freqDist()) // [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)]
694694
```
695695
696696
```sh
@@ -709,7 +709,7 @@ Standard Deviation: 4.2
709709
Frequency Distribution: [(20.0, 26), (16.0, 27), (12.0, 32), (8.0, 37), (8.0, 34), (8.0, 33), (8.0, 31), (8.0, 24), (4.0, 38), (4.0, 29), (4.0, 25)]
710710
```
711711
712-
1. Create a class called PersonAccount. It has firstname, lastname, incomes, expenses properties and it has total_income, total_expense, account_info,add_income, add_expense and account_balance methods. Incomes is a set of incomes and its description and the same goes for expenses.
712+
1. Create a class called PersonAccount. It has firstname, lastname, incomes, expenses properties and it has totalIncome, totalExpense, accountInfo,addIncome, addExpense and accountBalance methods. Incomes is a set of incomes and its description and expenses is also a set of expenses and its description.
713713
714714
🎉 CONGRATULATIONS ! 🎉
715715

0 commit comments

Comments
 (0)