Skip to content

Instantly share code, notes, and snippets.

@saaeiddev
Last active September 19, 2022 19:57
Show Gist options
  • Select an option

  • Save saaeiddev/7e91bb5efb5f8162827fe45582b9854c to your computer and use it in GitHub Desktop.

Select an option

Save saaeiddev/7e91bb5efb5f8162827fe45582b9854c to your computer and use it in GitHub Desktop.
List3 = ["amir", 3, 6, 9, True]
List4 = [2.2 , 3.2]
Number = int(input("please enter the number : "))
if Number > 10:
List3.append(Number)
print(List3)
elif Number < 10:
for item in List3:
List3.remove(item)
print(List3)
else:
print("Not Bigger")
Number2 = float(input("please enter a float numeric data type : "))
if Number2 > 6.9:
List4.append(Number2)
print(List4)
elif Number2 < 6.9:
for mem in List4:
List4.append(1.2)
print(List4)
else:
for mem in List4:
print(mem , mem + 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment