Answer:
You can try something like this:
# YOUR NAME
# May 16th 2022
# This program
def main():
age = input("Enter your name: ")
if not age.isnumeric():
print('Invalid input.')
return
if (int(age) >= 18):
print('You are an adult.')
else:
print('You are a minor.')
main()
The code that remove duplicate is as follows:
def remove_duplicate(mylist):
mylist = list(dict.fromkeys(mylist))
return mylist
print(remove_duplicate([1, 1, 2, 3, 3, 5, 6, 7]))
<h3>Code explanation</h3>
The code is written in python.
- we defined a function named "remove_duplicate" and it accept the parameter "mylist".
- The variable "mylist" is used to store the new value after the duplicate vallues has been removed.
- Then, wed returned mylist.
- Finally, we call the function with the print statement . The function takes the required parameter.
learn more on python here: brainly.com/question/21126936
Answer:
The two rudimental families of simple machines are the lever family and the inclined plane family. Within the lever family are the simple lever, the pulley and the wheel and axle. Within the inclined plane family are the simple inclined plane, the wedge and the screw.
Explanation:
HOPE THIS HELPS