Új hozzászólás Aktív témák
-
Hege1234
addikt
random adatokat adtam hozzá a json-hoz
(ez így még csak kiírja, a két kiválasztott csapat adatait)
a 2 kiválasztott csapatot akarod végül összehasonlítani?
for idx, stuffs in enumerate(data_resp['data'], start=1):
print(f"{idx} - {stuffs['participant']['name']} - (id: {stuffs['participant']['id']})")
selected_indices = input("írd ide a számokat: ").split()
selected_indices = [int(i) for i in selected_indices]
print()
for idx in selected_indices:
if 1 <= idx <= len(data_resp['data']):
s_participant_datas = data_resp['data'][idx - 1]
s_participant_name = s_participant_datas['participant']['name']
s_participant_id = s_participant_datas['participant']['id']
s_position = s_participant_datas['position']
s_points = s_participant_datas['points']
print(f'Csapat Név: {s_participant_name}')
print(f'Csapat ID: {s_participant_id}')
print(f'Pozíció: {s_position}')
print(f'Pontok: {s_points}')
print()
else:
print(f"nincs ilyen...: {idx}")
Új hozzászólás Aktív témák
- ASUS RTX 4060 DUAL 8GB GDDR6 OC V2 - 1 ÉV GARANCIA, NÉVRE SZÓLÓ SZÁMLA, UTÁNVÉT!
- ÚJ Bontatlan Apple iPhone 17 Pro 256GB Silver ! 1 ÉV nemzetközi APPLE GARANCiA
- iPhone 12 PRO MAX 128GB grafit gyönyörű vadonatúj 100% os akkumlátor! KÁRTYAFÜGGETLEN!
- Apple MacBook M3 Pro 14, 18GB RAM 512GB SSD elado ujszeru Gyor
- Flydigi Vader 3 Pro wireless hall effect kontroller eladó
- HP Victus Ryzen 7 8845HS /16GB DDR5 RTX 4060 / 1TB / 144Hz
- 3440 x 1440 100Hz!!! 65W PD 34" CURVED 1800R Samsung C34H890WGR - 1 év garancia!
- Apple Watch Series 11 46mm GPS + Cellular Karcmentes állapot 100% akkumulátor
- Bomba ár! Lenovo ThinkPad T14 G1i - i5-10G I 16GB I 256GB SSD I 14" FHD I Cam I W11 I Garancia!
- 58.5 mm full fém tamper
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

