magie1.py

Created by danio

Created on December 03, 2019

722 Bytes


from math import*
print()
print("-Choisit un nombre à")
print("4 chiffres.")
print("-Additionne les chiffres de")
print("ton nombre.")
print("-Soustrait ce résulat au")
print("nombre que tu a choisit.")
print("Rentre 1 si tu as compris.")
w=int(input())
if w==1:
  for loop in range(5):
    print("...")
  print("-Sélectionne un des chiffres ")
  print("de ce nouveau résultat,")
  print("sauf un zéro.")
  print("-Donne moi les autres chiffres.")
  print("et je te donnerai le chiffre")
  print("manquant")
  a=int(input())
  b=int(input())
  c=int(input())
  x=a+b+c
  n=9-x
  print("Calcul par télépathie en cours...")
  for loop in range(5):
    print("...")
  print("Le chiffre manquant est :",n)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.