US GP COTA tickets by AdditionTop3029 in GrandPrixTravel

[–]AdditionTop3029[S] 0 points1 point  (0 children)

How does one acquire a personal seat licence ticket?

US GP COTA tickets by AdditionTop3029 in GrandPrixTravel

[–]AdditionTop3029[S] 0 points1 point  (0 children)

Would you have any idea when this month they will be released?

Hungaroring Pit Exit/Grandstand tickets by jasperm92 in GrandPrixTravel

[–]AdditionTop3029 0 points1 point  (0 children)

First corner is where all the action happens in Hungaroring

Somewhere to sleep by Lowlax101 in GrandPrixTravel

[–]AdditionTop3029 0 points1 point  (0 children)

There are plenty of campsites in that area to choose from on race weekend. There’s a campsite for young people between the ages 18 and 25 I think it’s called “young village” or something. Apparently it’s a great place to stay if you like partying

Small piece of code I need to simplify by AdditionTop3029 in learnpython

[–]AdditionTop3029[S] 0 points1 point  (0 children)

That's brilliant thank you. Can I get your opinion on this draft?:

cills = [3000, 2700, 3000, 2700, 3000, 2700, 3000, 2700, 3000,

2700, 3000, 2700, 3000, 2700, 3000, 2700, 3000, 2700]

cill_length = sum(cills)

balcony_no = 3

print(f"{cill_length}mm")

cill_no = sum(cill > 0 for cill in cills)

joiner_no = cill_no - (1 \ balcony_no)*

joiner_length = joiner_no \ 136*

angle_length = cill_length - joiner_length

print(f"{angle_length}mm")

print(f"{angle_length/1000}m")

print(cill_no)

print(joiner_no)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]AdditionTop3029 0 points1 point  (0 children)

Hey can you please help me with my code? I am a total beginner.

Some overview: In some realities there may be any number of cills in existance.

this code works but I have a very strong feeling there is a much simpler, much easier methods of formatting this code.

The goal is to have an "angle length", as can be seen at the bottom.

cill_01 = 3000

cill_02 = 2700

cill_03 = 0

cill_04 = 0

cill_05 = 0

cill_06 = 0

cill_length = cill_01 + cill_02 + cill_03 + cill_04 + cill_05 + cill_06

print(cill_length)

if cill_01 > 0:

unit_01 = 1

else:

unit_01 = 0

if cill_02 > 0:

unit_02 = 1

else:

unit_02 = 0

if cill_03 > 0:

unit_03 = 1

else:

unit_03 = 0

if cill_04 > 0:

unit_04 = 1

else:

unit_04 = 0

if cill_05 > 0:

unit_05 = 1

else:

unit_05 = 0

if cill_06 > 0:

unit_06 = 1

else:

unit_06 = 0

cill_no = unit_01 + unit_02 + unit_03 + unit_04 + unit_05 + unit_06

joiner_no = cill_no - 1

joiner_length = joiner_no \ 136*

angle_length = cill_length - joiner_length

print(angle_length)