Problem: Loops Solution 1: Using for loop if __name__ == '__main__': n = int(input()) for i in range(n): print(i**2) Solution 2: Using while loop if __name__ == '__main__': ...
05. Loops
04. Python Division
Problem: Python Division Solution 1: Using print() function if __name__ == '__main__': a = int(input()) b = int(input()) print(a//b) print(a/b) Solution 2: Using f-string if __...
03. Arithmetic Operators
Problem: Arithmetic Operators Solution 1: Using print() function if __name__ == '__main__': a = int(input()) b = int(input()) print(a+b) print(a-b) print(a*b) Solution 2: Us...
02. Python If-Else
Problem: Python If-Else Solution 1: Using nested if-else statements n = int(input().strip()) if n%2==1: print('Weird') else: if 2<=n<=5: print('Not Weird') elif 6<...
01. Say "Hello, World!" With Python
Problem: Say “Hello, World!” With Python Solution 1 Here is a sample line of code that can be executed in Python: print("Hello, World!") # or if __name__ == '__main__': print ("Hello, World...
Customize the Favicon
The favicons of Chirpy are placed in the directory assets/img/favicons/. You may want to replace them with your own. The following sections will guide you to create and replace the default favicons...
Getting Started
Prerequisites Follow the instructions in the Jekyll Docs to complete the installation of the basic environment. Git also needs to be installed. Installation Creating a New Site There are two wa...
Writing a New Post
This tutorial will guide you how to write a post in the Chirpy template, and it’s worth reading even if you’ve used Jekyll before, as many features require specific variables to be set. Naming and...
Text and Typography
This post is to show Markdown syntax rendering on Chirpy, you can also use it as an example of writing. Now, let’s start looking at text and typography. Headings H1 - heading H2 - heading H3 - ...