File tree 1 file changed +32
-3
lines changed
1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -1869,14 +1869,43 @@ def voto(bth):
1869
1869
# CHALLENGE 103 - UNCOMPLETED
1870
1870
1871
1871
'''def ficha(name = "<Unknow>", golas = "0"):
1872
+ if(len(name) == 0 and len(golas) == 0):
1873
+ return print(f"The player <Unknow> scored 0 goals in the championship!")
1872
1874
if(len(name)== 0):
1873
- print(f"The player {name} scored {golas} goals in the championship!")
1875
+ return print(f"The player <Unknow> scored {golas} goals in the championship!")
1876
+ if(len(golas) == 0):
1877
+ return print(f"The player {name} scored 0 goals in the championship!")
1874
1878
else:
1875
- print(f"The player {name} scored {golas} goals in the championship!")
1879
+ return print(f"The player {name} scored {golas} goals in the championship!")
1876
1880
1877
1881
1878
1882
print("="*40)
1879
1883
name = str(input("What is the name of the player ? "))
1880
1884
goals = str(input("How many goals the player scored ? "))
1881
1885
ficha(name, goals)
1882
- # ficha()'''
1886
+ # ficha()'''
1887
+
1888
+ # CHALLENGE 104
1889
+
1890
+ def readint (integer ):
1891
+ print (integer , end = "" )
1892
+ a = input ("" )
1893
+ a = int (a )
1894
+ if (a + a != a - a ):
1895
+ return n
1896
+ else :
1897
+ print (n )
1898
+ while (a + a != a - a ):
1899
+ print (integer , end = "" )
1900
+ a = input ("" )
1901
+ a = int (a )
1902
+ if (a * a != 2 * a ):
1903
+ return n
1904
+ else :
1905
+ print (n )
1906
+ else :
1907
+ print (n )
1908
+
1909
+
1910
+ n = readint ("Enter with a number integer: " )
1911
+ print (f"You chose the number { n } !" )
You can’t perform that action at this time.
0 commit comments