appbrewery / 100-days-of-python Goto Github PK
View Code? Open in Web Editor NEW100 Days of Code - The Complete Python Pro Bootcamp
Home Page: https://100daysofpython.dev/
100 Days of Code - The Complete Python Pro Bootcamp
Home Page: https://100daysofpython.dev/
Angela mam and other python developers take into notice that when you try to use Pandas.read_csv it will give error:
RuntimeError: The current Numpy installation ('...\venv\lib\site-packages\numpy\init.py') fails to pass a sanity check due to a bug in the windows runtime.
See this issue for more information: https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html
There is a bug in Numpy 1.19.4 v
This will work.
to clarify reusability
The users choice is validated in the 'if'-clause in line 38. Unfortunately you already print out the game_image[user_choice] in line 32, prior to any validation. So if the users does not choose between 0,1 or 2 you end up in an IndexError in line 32.
During this video, when calculating the second answer, you use the following code:
second_answer = calculation_function(calculation_function(num_1, num_2), num_3)
print(f"{first_answer} {operator} {num_3} = {second_answer}")
When you ran this code, your first calculation was 3 + 2 = 5, then you used 5 and chose the * operator to multiply by num_3, which you chose as 3.
The printed f-string displayed 5 * 3 = 18 in the console, which is obviously incorrect.
After running through the code on pythontutor.com, it appears as though when calculating the second answer, you're changing the operator so the calculation_function(num_1,
num_2)
part of the second_answer,
actually multiplies the first 2 numbers together, before carrying out the same calculation with num_3.
i.e - 3*2 = 6, then using 6 as the value of calculation_function(num_1, num_2)
If you're using the same operator both times, there won't be an issue here, however, it seems better just to use
second_answer = calculation_function(first_answer, num_3)
Below code is not working
final_amount = round(bill * (1 + tip / 100) / people, 2)
print(f"Each person should pay: ${final_amount}")
final_amount = round(bill * (1 + tip / 100) / people, 2)
final_contribution_eachHead = "{:.2f}".format(final_amount)
print("Every person will pay:$",final_contribution_eachHead)
Above code can further be optimised but looking at the level of exercise this detailed code is omitted of optimisation.
This is a feature request and not a bug
I would request you to include FastApi framework in your course.
Flask and Django are pretty old and FastApi is very performant as comapred to Django and Flask
Mam It was more comfortable here as we can check resources and course goals day wise. It will be quite confusing at the Udemy website. We can see here list wise projects and match our ones too. Can you please revert it back here .
Rahul
@angelabauer Mam, please revert and add all the course resource files back here(previously like web development Bootcamp) as it creates confusion and problems on udemy individually. If all the resources are stacked and kept in one place, then it's easy to access the files and understand the concepts in less time. I hope that you take the necessary actions from your side and keep on providing quality content for us. Thanking you.
You have to delete the following line in the forked code:
print(student_heights)
Otherwise, the full list will be part of the output and the unit tests fail even if your code is valid.
Hi Angela! Great work on the new course. It seems that there is a missing link in the Read Me for Interactive Exercise 1.4. I did find the link by using the formatting you are using as https://repl.it/@appbrewery/day-1-4-exercise.
Sorry, hope its just me - I can't seem to find a resource link for downloading the starting project
or should post this question in the qna forms
When using the code provided in this video and even in your video itself, when you decode the text at the end (around 7:48 in the video) - the decoded text comes out as holvo.
I used print(shift_amount) within the for loop to check why this happened, and it showed this in the console:
_Type 'encode' to encrypt, type 'decode' to decrypt:
decode
Type your message:
mjqqt
Type the shift number:
5
-5
5
-5
5
-5
The decoded text is holvo
It seems as though the if statement needs to be outside of the for loop:
if cipher_direction == `"decode":
shift_amount *= -1
for letter in start_text:
position = alphabet.index(letter)
new_position = position + shift_amount
end_text += alphabet[new_position]
The discord group link is expired and i was hoping if i can get the new group link
The course is very good, am really enjoying it
Could not find python cheat sheets and notes pages.
Please help me on this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.