From fe76182496a1d6cdbb5eceac550e0f8afdda421f Mon Sep 17 00:00:00 2001 From: Nishan Ghimire Date: Wed, 6 May 2026 19:36:02 +0545 Subject: [PATCH] slider and calcu... --- Students/Nishan/To do list.html | 156 ++++++++++++++++++++++++++ Students/Nishan/python/calculator.py | 35 ++++++ Students/Nishan/python/first class.py | 1 + Students/Nishan/slider.html | 108 ++++++++++++++++++ getStarted/jsAdvance/simplecart.html | 1 - 5 files changed, 300 insertions(+), 1 deletion(-) create mode 100644 Students/Nishan/To do list.html create mode 100644 Students/Nishan/python/calculator.py create mode 100644 Students/Nishan/python/first class.py create mode 100644 Students/Nishan/slider.html diff --git a/Students/Nishan/To do list.html b/Students/Nishan/To do list.html new file mode 100644 index 0000000..afef9e3 --- /dev/null +++ b/Students/Nishan/To do list.html @@ -0,0 +1,156 @@ +```html + + + + + +To-Do List + + + + + + +
+

To-Do List

+ +
+ + +
+ + +
+ + + + + +``` diff --git a/Students/Nishan/python/calculator.py b/Students/Nishan/python/calculator.py new file mode 100644 index 0000000..a736a56 --- /dev/null +++ b/Students/Nishan/python/calculator.py @@ -0,0 +1,35 @@ +def add(a, b): + return a + b + +def subtract(a, b): + return a - b + +def multiply(a, b): + return a * b + +def divide(a, b): + if b == 0: + return "Cannot divide by zero" + return a / b + +print("Select operation:") +print("1. Add") +print("2. Subtract") +print("3. Multiply") +print("4. Divide") + +choice = input("Enter choice (1/2/3/4): ") + +num1 = float(input("Enter first number: ")) +num2 = float(input("Enter second number: ")) + +if choice == '1': + print("Result:", add(num1, num2)) +elif choice == '2': + print("Result:", subtract(num1, num2)) +elif choice == '3': + print("Result:", multiply(num1, num2)) +elif choice == '4': + print("Result:", divide(num1, num2)) +else: + print("Invalid input") \ No newline at end of file diff --git a/Students/Nishan/python/first class.py b/Students/Nishan/python/first class.py new file mode 100644 index 0000000..26b6aa3 --- /dev/null +++ b/Students/Nishan/python/first class.py @@ -0,0 +1 @@ +print ("hello world") \ No newline at end of file diff --git a/Students/Nishan/slider.html b/Students/Nishan/slider.html new file mode 100644 index 0000000..3e88409 --- /dev/null +++ b/Students/Nishan/slider.html @@ -0,0 +1,108 @@ +```html + + + + + +Image Slider + + + + + + +
+
+ + + +
+ + + +
+ + + + + +``` diff --git a/getStarted/jsAdvance/simplecart.html b/getStarted/jsAdvance/simplecart.html index b5e5f53..26951c4 100644 --- a/getStarted/jsAdvance/simplecart.html +++ b/getStarted/jsAdvance/simplecart.html @@ -163,7 +163,6 @@ flex-shrink: 0; margin-top: 4px; } - .section-title-group {} .section-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px;