SosiPad offers two methods for sharing code. First, you can embed a SosiPad containing source code into your webpage. Second, you can share a SosiPad execution URL that includes the source code. Both methods utilize GitHub's Gist.
SosiPad automatically finds and displays the main.py file from your Gist.
You can share source code that users can directly type out for practice.
You can share code in a quiz format where users fill in blanks in the source code.
# Define a list of numbers
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# Iterate through the list
for number in {{c1::numbers}}:
# Check if the number is even or odd
if number % {{c2::2}} == 0:
print(f"{number} is even")
else:
print(f"{number} is odd")