u/Fearless-Car5512

Image 1 — Anyone whose Primers batch ends today? Need help with “Concert Ticket Booking” question for 100% completion
Image 2 — Anyone whose Primers batch ends today? Need help with “Concert Ticket Booking” question for 100% completion

Anyone whose Primers batch ends today? Need help with “Concert Ticket Booking” question for 100% completion

Hey everyone,

My Primers batch is ending today and I’m stuck on the “Concert Ticket Booking” question under JavaScript / Web Technologies.

I’ve been trying to fix it for hours but I’m still getting errors, and I really need this for 100% course completion.

If anyone has already completed this question successfully, could you please share screenshots of the IDE or the code for the HTML and JS files?

I know it takes a bit of effort, but it would genuinely help me a lot and I’d really appreciate any support.

Thanks in advance 🙏

u/Fearless-Car5512 — 3 days ago

Accenture Primers Python Training – Getting SyntaxError on a Correct-Looking if Statement

Hi everyone,

I’m currently doing the Accenture Primers Python Training, and I’m stuck on a Python syntax issue that’s confusing me a lot.

I’m getting this error:

SyntaxError: invalid syntax

The error points to this line:

if age <= 10 or age > 80:

What’s confusing me is that the condition itself looks completely valid, and the compiler/editor says something like “remove extra colon”, but I don’t see any extra colon there.

I’ve attached a screenshot, and I’ll upload the full code as well so someone can help me debug it properly.

I only have 2 days to complete my primers and in dire need of help

the code:
def main():

n = int(input("Enter the no of participants details to be created :"))

student_list = []

if n <= 0:

print("Invalid Input")

else:

for i in range(n):

student = {}

name = input("Name: ")

state = input("State: ")

age = int(input("Age: "))

if age <= 10 or age > 80:

print("Invalid Input")

continue

student["Name"] = name

student["State"] = state

student["Age"] = age

student_list.append(student)

print("Here's the list of participants' details :")

for i in student_list:

print(i)

res = {}

for i in student_list:

if i["State"] not in res:

res[i["State"]] = 1

else:

res[i["State"]] = res[i["State"]] + 1

for key, value in res.items():

print("State: ", key, " Count: ", value)

return

if __name__ == '__main__':

main()

u/Fearless-Car5512 — 4 days ago
▲ 1 r/noida

I’m meeting a friend after a long time and looking for a quiet, relaxed place where we can sit, talk, and have a few drinks till around 2 AM. Preferably not a loud club or party spot.

reddit.com
u/Fearless-Car5512 — 12 days ago