We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b63e6f commit fa5403cCopy full SHA for fa5403c
3 files changed
ipython-console/employee.py
@@ -0,0 +1,4 @@
1
+first_name = "Han"
2
+last_name = "Solo"
3
+department = "Accounts"
4
+salary = 1000
ipython-console/employee_embedded.py
@@ -0,0 +1,10 @@
+import IPython
+
5
6
+print(f"{first_name} {last_name}")
7
8
+IPython.embed()
9
10
ipython-console/increment.py
@@ -0,0 +1,12 @@
+def salary_increment(salary):
+ """Calculate the new salary after applying an increment.
+ Args:
+ salary (int): The current salary.
+ Returns:
+ str: A string indicating the new salary after increment.
+ """
+ increment = salary / 10
11
+ new_salary = increment + salary
12
+ return f"Your New Salary is: {new_salary}"
0 commit comments