Пікірлер
@Jarulara
@Jarulara 10 күн бұрын
I fear being shot by my neighbors living this close in America. Will I feel different in Haarlem? Cause I love the look
@LeoSkyro
@LeoSkyro Ай бұрын
When the teacher explained List comprehension and showed how mnuch you can shorten code I just had to use it for this. c = dict() fhand = open('mbox-short.txt') for line in fhand: line = line.rstrip() words = line.split() if len(words) < 3 or words[0] != 'From': continue name = words[1] c[name] = c.get(name,0) + 1 print(sorted([(v,k) for k,v in c.items()][:1]))
@jerodast
@jerodast Ай бұрын
It's probably been explained to death already, but literally typing out the spaces on every line is not how that works. So a lot of programmers sort of gave a condescending laugh at the joke here. It's definitely pulled from real nitpicky debates, just demonstrated wrong... But good lord did I crack up at "OH GOD HELP US" at vim over emacs 🤣🤣 I forget they did get into more details than just "four keys vs one", nice. Also if we wanna be stereotypical here, Richard would totally be on the vim side of the equation.
@jerodast
@jerodast Ай бұрын
Also who the hell uses size 8 tabs what is he some kind of monster
@dsuess
@dsuess 2 ай бұрын
2 spaces
@JoshuaGroot-r6t
@JoshuaGroot-r6t 3 ай бұрын
Whats the point on You tube of all these vlogs on bike going from A to B?
@koustavsaha8163
@koustavsaha8163 3 ай бұрын
Thank you so much for this video bro. You are a life saver! I was stuck with a difficult exercise problem for hours and was going nowhere. That's when I got desperate and started searching for the solution and came across your video.
@jeromegomes6798
@jeromegomes6798 5 ай бұрын
please can you provide the questions in a pdf format?
@Talhakhantutorial
@Talhakhantutorial 5 ай бұрын
the answer required in the assignment is 498.75 how it can be done?
@DudekInformatyk
@DudekInformatyk 5 ай бұрын
My man, what happened to lofi code & chill videos?
@renepeterse1884
@renepeterse1884 5 ай бұрын
The other side of the canal is actually nicer
@WhoElseLikesPortal
@WhoElseLikesPortal 6 ай бұрын
i was struggling until you showed me that literally the entire verification was done purely with regex. thanks!!
@tcap-ob3sg
@tcap-ob3sg 6 ай бұрын
first solution doesn't work, I can enter 1.5 and get no error message
@renzdiaz5284
@renzdiaz5284 7 ай бұрын
great super thanksss!!
@mo7sin711
@mo7sin711 7 ай бұрын
Hi Please help, I copy pasted all the exercises in the freecodecamp course to my sheet and every one them had an error output when I run them in the terminal no idea what to do :(
@Primeness
@Primeness 8 ай бұрын
Thanks
@Primeness
@Primeness 8 ай бұрын
Love you teaching partner
@saintflirt
@saintflirt 8 ай бұрын
So relaxing!
@deintri
@deintri 8 ай бұрын
I'm getting a NameError: name 'List' is not defined. Did you mean: 'list'?
@TyquanWorldNN
@TyquanWorldNN 9 ай бұрын
Hello, sorry to bother you but could you upload or send me a link for the playlist "lofi coding" you uploaded it during covid. Please.. Thanks.
@alexclausen5376
@alexclausen5376 9 ай бұрын
Thank you! I didn't want to watch someone just throw out the answer. It helped a lot to watch you work through it.
@BattlewarPenguin
@BattlewarPenguin 9 ай бұрын
Great series!
@JARGUY-em8bj
@JARGUY-em8bj 9 ай бұрын
Beautiful. Just beautiful!!!
@warmdusk
@warmdusk 10 ай бұрын
I find these so helpful. Thank you!
@MrCurlz
@MrCurlz 10 ай бұрын
It's been 7 years - and still same problem and same solution :O
@angelabeckman9203
@angelabeckman9203 10 ай бұрын
Thank you this video you really helped solve my problem. Just curious, Is it possible to put the ranges for the grades in a try/except statement? I put the floating function in one to guard against input other than numbers and it worked but writing the values like 0.0 <= grade <= 1.0 was ignored completely.
@markkennedy9767
@markkennedy9767 11 ай бұрын
At 22:00 can we just use .isalpha() to determine if the character is a letter of the alphabet?
@markkennedy9767
@markkennedy9767 11 ай бұрын
at 17:30 why is it necessary to initialise k as None outside the for loop: Aren't we initialising it as max_address in the for loop. Or is it just in case we have an empty dictionary? Also, for question 4, say if we had more than one key with a max value of 5 in the dictionary, how would we get all those keys. I think this code only returns the first key with the maximum value. I noticed this when trying to get the min values (where there are several keys in the dictionary with values of 1) and haven't yet found a solution for getting all those keys with minimum values. Any ideas? Convert the dictionary to a sorted tuple and go from there?
@markkennedy9767
@markkennedy9767 11 ай бұрын
Thanks for these. At 8:00, could we just split the string on its spaces and get the second item in the resulting list which will always be the number part of the string. I did this and it worked fine.
@tahjscott429
@tahjscott429 11 ай бұрын
Thank you for the videos. At 6:44 how were you able to select all instances of print and edit them at once?
@Pelerincha
@Pelerincha Жыл бұрын
Nice video, but the camera needs to swivel upwards about 1 degree , you'll get more head view...
@InSync3912
@InSync3912 Жыл бұрын
Why by importing the processed csv file back into ERP software - all my data end up in one cell?
@jorgemachado5317
@jorgemachado5317 Жыл бұрын
The regular expression: /^(1\s?)?(\d{3}|\(\d{3}\))[\-\s]?\d{3}[\-\s]?\d{4}$/
@hawley0
@hawley0 Жыл бұрын
ok Tom
@ishimweaimeparadis9631
@ishimweaimeparadis9631 Жыл бұрын
Awesome
@ishimweaimeparadis9631
@ishimweaimeparadis9631 Жыл бұрын
great work brother
@sabosbma
@sabosbma Жыл бұрын
Thanks man! You are doing great 👍
@deng_mapeer
@deng_mapeer Жыл бұрын
i have solved the work on exercise 4 chapter 9, am stuck in printing how many messages the person has
@_Sujit-khot_
@_Sujit-khot_ Жыл бұрын
Really good explanation ❤👍
@leandroariel6081
@leandroariel6081 Жыл бұрын
const currencyUnit = { "PENNY": 1, "NICKEL": 5, "DIME": 10, "QUARTER": 25, "ONE": 100, "FIVE": 500, "TEN": 1000, "TWENTY": 2000, "ONE HUNDRED": 10000 } function checkCashRegister(price, cash, cid) { let changeSum = cash * 100 - price * 100 ; let changeSumCheck = changeSum; let change = []; let status = ''; let cidSum = 0; let filteredCid = cid.filter(elem => elem[1] !== 0).reverse(); filteredCid.forEach(elem =>{ let curr = elem[0] let currSum = elem[1] * 100; cidSum += currSum; let amount = 0; while(changeSum >= currencyUnit[curr] && currSum > 0) { amount += currencyUnit[curr]; changeSum -= currencyUnit[curr]; currSum -= currencyUnit[curr]; } if (amount !== 0) { change.push([curr, amount /100]); } }); if(changeSum > 0 ) { status = 'INSUFICIENT_FUNDS'; change = []; }else if (changeSum == 0 && changeSumCheck == cidSum){ status = 'CLOSED'; change = cid; } else { status = 'OPEN'; } return{ 'status': status, 'change': change }; } console.log(checkCashRegister(19.5, 20, [["PENNY", 0.5], ["NICKEL",0 ], ["DIME", 0], ["QUARTER", 0], ["ONE", 0], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]])); aqui tá dando erro
@mechafuture
@mechafuture Жыл бұрын
thank you for this video
@homawasimkhan3845
@homawasimkhan3845 Жыл бұрын
Plz answer me ...I am waiting for u r reply I am fresher
@homawasimkhan3845
@homawasimkhan3845 Жыл бұрын
Can u plz tell me from which plate form u got this knowledge I am very obliged to u
@aksonai
@aksonai Жыл бұрын
I don't understand your question. What do you mean by 'plate'?
@homawasimkhan3845
@homawasimkhan3845 Жыл бұрын
Unbelievable... amazing
@rahuldas6777
@rahuldas6777 Жыл бұрын
thanks, this is nice!
@elrodrygammer
@elrodrygammer Жыл бұрын
Thank you very much, I learned more about regExp. in this video than in the course.
@davejackson88
@davejackson88 Жыл бұрын
clear and functionaly syntax its look right to the concept. Thanks brò
@Tdav125
@Tdav125 Жыл бұрын
Do you have a solution for Exercise 1? Thanks.
@jonwilson7035
@jonwilson7035 Жыл бұрын
For exercise 1: The code only works with http URLs, not https. This is because the socket code provided is making a plain HTTP request on port 80. HTTPS requests require an SSL/TLS layer on top of the TCP connection, typically operating on port 443. Handling HTTPS requests requires additional libraries like ssl in Python and a more complex setup. Websites that begin with "https" use the HTTPS protocol, and thus this code would fail for such URLs. This code does work for any website: import socket import ssl def fetch_url(url): parts = url.split('/') if len(parts) < 3: raise ValueError("Invalid URL format") host = parts[2] path = '/' + '/'.join(parts[3:]) if len(parts) > 3 else '/' # Create a raw socket mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Wrap socket with SSL/TLS for HTTPS if url.startswith('https'): context = ssl.create_default_context() mysock = context.wrap_socket(mysock, server_hostname=host) port = 443 else: port = 80 mysock.connect((host, port)) cmd = f'GET {path} HTTP/1.1 Host: {host} User-Agent: CustomSocketClient Connection: close ' mysock.send(cmd.encode()) data_received = [] while True: data = mysock.recv(512) if len(data) < 1: break data_received.append(data.decode(errors='ignore')) response = ''.join(data_received) header, body = response.split(' ', 1) # If the response is a redirect (e.g., 301 or 302), follow it if "302 Found" in header or "301 Moved Permanently" in header: for line in header.split(" "): if line.startswith("Location:"): redirect_url = line.split(": ", 1)[1] return fetch_url(redirect_url) return body try: url = input("Enter in URL: ") content = fetch_url(url) print(content) except ValueError: print("Invalid URL format")
@bestgamting
@bestgamting Жыл бұрын
There are really nice bicycle streets and paths ! So beautiful