diff --git a/files/visitor_locations.db b/files/visitor_locations.db index 61cbf36e6..5b3f6fda2 100644 Binary files a/files/visitor_locations.db and b/files/visitor_locations.db differ diff --git a/requirements.txt b/requirements.txt index 3903a6e02..6d804b8bd 100644 Binary files a/requirements.txt and b/requirements.txt differ diff --git a/webpages/input_code.py b/webpages/input_code.py index d522c5bf8..1d23f8784 100644 --- a/webpages/input_code.py +++ b/webpages/input_code.py @@ -1,2 +1,12 @@ -# Example 1: put following code in the editor and click APPLY to run -print("Hello PythonX") \ No newline at end of file +# Example 3: Demonstrating basic arithmetic operations +a = 10 # Assigns integer 10 to variable 'a' +b = 3 # Assigns integer 3 to variable 'b' +c = 2.5 # Assigns floating-point number 2.5 to variable 'c' + +print('Addition: ', a + b) # Prints the sum of 'a' and 'b' +print('Subtraction: ', a - b) # Prints the result of subtracting 'b' from 'a' +print('Multiplication: ', a * b) # Prints the product of 'a' and 'b' +print('Multiplication: ', a * c) # Prints the product of 'a' and 'c', demonstrating integer-float multiplication +print('Division: ', a / b) # Prints the division of 'a' by 'b', result is a float +print('Floor Division: ', a // b) # Prints the floor division of 'a' by 'b', removing digits after the decimal point +print('Modulus: ', a % b) # Prints the remainder of 'a' divided by 'b' \ No newline at end of file