Answer:
- import datetime
-
- def get_year_of_birth():
- age = int(input("Enter your age: "))
- current_year = datetime.datetime.now().year
- year_of_birth = current_year - age
- return year_of_birth
-
- print(get_year_of_birth())
Explanation:
Firstly, we import datetime module as we need it to get the current year (Line 1).
Next, create a function named it as get_year_of_birth (Line 3). Prompt user to input age and assign it to a variable (Line 4). Next, we use now() method from datetime module to get the current date and time and extract the year component (Line 5). At last, calculate the year of birth by subtracting the current_year with age and return it as output (Line 6-7).
A(n)<u> Instead Of trigger </u>is a pl/sql block that manages in place of a dml action on a database view.
<h3>Why instead of triggers are used?</h3>
INSTEAD OF triggers describe how to perform insert, update, and delete functions against complex views. INSTEAD OF triggers permit applications to use a view as the sole interface for all SQL operations.
<h3>What are the after triggers?</h3>
An after trigger runs after the connected insert, update, or delete changes are involved to the table. The WHEN condition can be used in an SQL trigger to specify a state. If the condition evaluates to true, the SQL views in the SQL trigger routine body are run.
To learn more about Instead Of trigger, refer
brainly.com/question/21564232
#SPJ4
A field whose data type is URL address data can store text that can be used as a hyperlink address.
...something that the user knows.