abjer / isds2020

Introduction to Social Data Science 2020 - a summer school course abjer.github.io/isds2020
58 stars 92 forks source link

problem 0.2.2 #17

Open Hajer27 opened 3 years ago

Hajer27 commented 3 years ago

Hi. I'm having trouble with problem 0.2.2 - can't seem to do the coding right. (have no prior coding experience)

I get a total different result than what's written: 0.1118330252570664

Hope a kind soul can help me out, as I'm panicking with the exercises!

jsr-p commented 3 years ago

Hi @Hajer27, don't panick, you can always turn off your computer and take a break :) With that said, what does your code look like? The exercise asks you to write an if/else block with the condition as given in the instruction to the exercise. Depending on what value your random number between 0 and 1 takes your code should either return 0 or 1.