Horje
missing number Code Example
missing number
numbers = input("Enter your numbers with ','separated form : ")
int_array = list(map(int,numbers.split(",")))
Sum = 0
for i in range(len(int_array)):
    Sum = Sum+int_array[i]
n = len(int_array) +1
missing = (((n+1) * (n))/2) -Sum 
print(missing)




Python

Related
Saving model Code Example Saving model Code Example
latex maths to python parser Code Example latex maths to python parser Code Example
while my_input != "exit": Code Example while my_input != "exit": Code Example
save changes flask sqlalchemy Code Example save changes flask sqlalchemy Code Example
RuntimeError: DataLoader worker (pid(s) 13615) exited unexpectedly Code Example RuntimeError: DataLoader worker (pid(s) 13615) exited unexpectedly Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9