slicing is not working i can’t fix this python code

this is the code on pyhton e_mail=input(“enter your mail adress”).strip().lower() print(f”hello your name is {e_mail[:e_mail.index(“@”)].capitalize()}”) print(f””Email Service Provider Is {e_mail[e_mail.index(“@”)+1:e_mail.index(“.”)]}”) print(f””Top Level Domain Is {e_mail[e_mail.index(“.”)+1:]}”) this is ereur msg print(f”hello your name is {e_mail[:e_mail.index(“@”)].capitalize()}”) ^ SyntaxError: f-string: unmatched ‘(‘ visual-studio-code indexing printing slice New contributor Bahaeddine Dhahbi is a new contributor to this site. Take…

GSAP animations useGSAP hook triggering simultaneously in Next.js

I’m encountering an issue while migrating a React project to Next.js. In the original React project, I used GSAP animations with the useGSAP hook from the @gsap/react library. The animations in each component would start only when the component scrolled into view. However, after converting the project to Next.js, all the animations in each component start simultaneously when the page loads, instead of triggering individually upon scrolling into view.

I’m looking for graphql query for cognite api which will do the query fetch data from 2 views

{ “with”: { “Property”: { “nodes”: { “filter”: { “and”: [ { “hasData”: [ { “type”: “view”, “space”: “slb-pdm-dm-governed”, “externalId”: “Property”, “version”: “1_6” } ] }, { “equals”: { “property”: [ “node”, “externalId” ], “value”: “Entity:L660V486LL11142:f4b7cd41-031d-4621-8332-b0461113c572” } } ] } } }, “TimeSeriesProeprtyType”: { “nodes”: { “from”: “Property”, “through”: { “view”: { “type”: “view”, “space”: “slb-pdm-dm-governed”, “externalId”: “TimeseriesPropertyType”, “version”: “1_9” }, “identifier”: “f4b7cd41031d46218332b0461113c572” }, “filter”: { “and”: [ { “in”: { “property”: [ “slb-pdm-dm-governed”, “TimeseriesPropertyType/1_9”, “externalId” ], “values”: [ { “space”: “slb-pdm-dm-governed”, “name”: “SWITCH_STATUS” } ] } } ] } } } }, “select”: { “Property”: { “sources”: [ { “source”: { “type”: “view”, “space”: “slb-pdm-dm-governed”, “externalId”: “Property”, “version”: “1_6” }, “properties”: [ “*” ] } ] } }, “includeTyping”: false }

Beautifulsoup web scraping outputs ‘[ ]’

I’m incredibly new to web scraping, I have tried to scrape simple data from websites with succes and now wanted to try and scrape bookies odds for sports gambling, this is when I stumbled upon a problem. With using the exact code that worked on other sites (just changing the class name to one that’s on the new site) the output now just says ‘[ ]’. There might just be a very simple solution that i’m missing but I just don’t see it.