Lädt...


🔧 Task 2 - Constants and variables


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Create a variable named name and assign your name to it. Then print the value of the variable.

name = "ganesh"
print(name)

Create a variable age and assign your age to it. Later, reassign the variable with a new value and print the new value.

age = 36
age = 37
print(age)

Assign the values 5, 10, and 15 to three variables a, b, and c in a single line. Print their values.

a , b , c = 5 , 10 , 15
print(a , b , c)

Swap the values of two variables x and y without using a third variable. Print their values before and after swapping.

x , y = 1 , 2
print(x , y)
x , y = 2, 1
print(x , y )

Define constants PI with appropriate values and print them.

PI = 3.14
print(PI)

Write a program that calculates the area of a circle using the constant PI and a variable radius. Print the area.

PI = 3.14
r = 5
a = pi * r * r
print(a)
79.5

Define constants for the length and width of a rectangle. Calculate and print the area.
Define a constant for π (pi) and a variable for the radius. Calculate and print the circumference of the circle.

LENGTH = 60
WIDTH = 20
a = LENGTH * WIDTH
print(a)
1200

PI = 3.14
r = 8
circumference = 2 * pi * r
circumference = 2 * PI * r
print(circumference)
50.24

...

🕵️ CVE-2024-25219 | Task Manager App 1.0 /TaskManager/Task.php Task Name cross site scripting


📈 31.29 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2024-7792 | SourceCodester Task Progress Tracker 1.0 delete-task.php task sql injection


📈 31.29 Punkte
🕵️ Sicherheitslücken

🔧 Refactoring instance variables to local variables in Rails controllers


📈 27.88 Punkte
🔧 Programmierung

🕵️ Burden 2.1.1 Add Task /burden/worker.php task/detail Cross Site Scripting


📈 20.86 Punkte
🕵️ Sicherheitslücken

🕵️ Burden 2.1.1 Add Task /burden/worker.php task/detail Cross Site Scripting


📈 20.86 Punkte
🕵️ Sicherheitslücken

📰 Windows 10: How To Create Task in ‘Task Scheduler’


📈 20.86 Punkte
🤖 Android Tipps

🪟 How to create an automated task using Task Scheduler on Windows 10


📈 20.86 Punkte
🪟 Windows Tipps

🕵️ CVE-2021-4257 | ctrlo lenio Task views/task.tt cross site scripting


📈 20.86 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2021-4256 | ctrlo lenio views/index.tt task.name/task.site.org.name cross site scripting


📈 20.86 Punkte
🕵️ Sicherheitslücken

⚠️ [webapps] Employee Task Management System v1.0 - SQL Injection on (task-details.php?task_id=?)


📈 20.86 Punkte
⚠️ PoC

⚠️ [webapps] Employee Task Management System v1.0 - SQL Injection on edit-task.php


📈 20.86 Punkte
⚠️ PoC

🍏 One Task 1.1.2 - Conquer one task at a time.


📈 20.86 Punkte
🍏 iOS / Mac OS

🕵️ CVE-2024-24141 | SourceCodester School Task Manager App 1.0 task sql injection


📈 20.86 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2024-2572 | SourceCodester Employee Task Management System 1.0 /task-details.php redirect


📈 20.86 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2024-2570 | SourceCodester Employee Task Management System 1.0 /edit-task.php redirect


📈 20.86 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2024-2573 | SourceCodester Employee Task Management System 1.0 /task-info.php redirect


📈 20.86 Punkte
🕵️ Sicherheitslücken

🔧 Elixir Task, Task.Supervisor - Another way to work with Elixir process


📈 20.86 Punkte
🔧 Programmierung

🔧 HNG STAGE 1 TASK: Linux User Creation Bash Script Task


📈 20.86 Punkte
🔧 Programmierung

📰 How to Create Task Using Windows 11 Task Scheduler


📈 20.86 Punkte
📰 IT Security Nachrichten

🕵️ This hidden Windows 11 setting adds an 'End task' option to every task on your taskbar


📈 20.86 Punkte
🕵️ Hacking

🔧 Introducing Saksh Task Manager: Simplify Your Task Management with Node.js


📈 20.86 Punkte
🔧 Programmierung

🔧 Set Environment Variables for Debug, Launch, and Tools with CMake and Open Folder


📈 17.21 Punkte
🔧 Programmierung

🔧 Finding and solving a nasty bug with Cloud Run and environment variables


📈 17.21 Punkte
🔧 Programmierung

🔧 JavaScript Variables and Data Types: Storing and manipulating data in JavaScript.


📈 17.21 Punkte
🔧 Programmierung

matomo