You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(friends.append("But Why It Is In This Ancient Book."))
print(friends)
sample_list = [1, 2,6,7,3,67,472345]
sample_list.sort()
print(sample_list)
sample_list.insert(4, 345)
print("so the final list is :-")
sample_list.sort()
print(sample_list)
choice = input("\033[32m Y IF YOU WANT TO REMOVE A VALUE or N IF YOU DON'T WANT TO AND IF YOU WRITE ANY THING ELSE I ...I.. YOU DON'T WANA KNOW\033[0m")
if choice.lower() == "y":
value_to_remove = int(input("Enter the value you want to remove from the list: "))
if value_to_remove in sample_list:
sample_list.remove(value_to_remove)
print(f"{value_to_remove} has been removed. The updated list is: {sample_list}")
else:
print(f"{value_to_remove} is not in the list.")
else:
print("SOO... YOU ARE AN IDIOT RASKALE HOW WANT TO PLAY GAMES DAMN YOU!")