Skip to content

Commit 6426408

Browse files
authored
Merge pull request guipsamora#28 from Shan11812/04_01
comparing with int instead of numpy.int64
2 parents c434131 + 8309b82 commit 6426408

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

04_Apply/Students_Alcohol_Consumption/Exercises_with_solutions.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -952,12 +952,9 @@
952952
"outputs": [],
953953
"source": [
954954
"def times10(x):\n",
955-
" if type(x) is str:\n",
956-
" return x\n",
957-
" elif type(x) is numpy.int64:\n",
955+
" if type(x) is int:\n",
958956
" return 10 * x\n",
959-
" else:\n",
960-
" return"
957+
" return x"
961958
]
962959
},
963960
{

0 commit comments

Comments
 (0)