ines / course-starter-python

👩‍🏫🐍 Starter repo for building interactive Python courses
https://course-starter-python.netlify.com
MIT License
504 stars 118 forks source link

Pre Exercise code #19

Open AIITech opened 4 years ago

AIITech commented 4 years ago

Hello Ines,

I really apreciate your efforts to make this project simple and useful for all code lecturer around the world ( big thanks to you )

I have a question could you help me please. My question is how to hide pre exercise code. For example if the exercise consist 2 parts and I want to hide the first part

#Part 1 ( Hide )
import pandas as pd
url = "https://github.com/data.csv"

#Part 2 ( Show )
data = pd.read_csv(url)
data.head()

How to hide part 1 ( I dont want the student see this part ) and show only part 2?

Thanks in advance.