We will look at some results from the group stage from various World Cups. In each group there are 4 national teams that play 6 matches against each other. The match results are given as a list of 4-tuples, with 2 strings and 2 int:
[
("Brazil", "Scotland", 2, 1),
("Morocco", "Norway", 2, 2),
("Scotland", "Norway", 1, 1),
("Brazil", "Morocco", 3, 0),
("Brazil", "Norway", 1, 2),
("Scotland", "Morocco", 0, 3),
]
For each team we can now make a statistic with 4 numbers:
GF (goals for) - the number of goals the team has scored
GA (goals against) - the number of goals scored against the team
GD (goal difference) - the difference between GF and GA, always equal to GF-GA
PT (points) - the score: 3 points to the match winner, 1 point to each team if the match is a draw
These statistics should be stored in a data structure that is a dict of dicts. For the example above, it looks like this:
{
'Brazil': {'GF': 6, 'GA': 3, 'GD': 3, 'PT': 6},
'Scotland': {'GF': 2, 'GA': 6, 'GD': -4, 'PT': 1},
'Morocco': {'GF': 5, 'GA': 5, 'GD': 0, 'PT': 4},
'Norway': {'GF': 5, 'GA': 4, 'GD': 1, 'PT': 5},
}
Sub-task 1 (make_stats)
Create a function make_stats (matches), where matches is a list of match results in the format shown above. The function should return a dict with the statistics in the mentioned dict format. There is a skeleton for make_stats () already in the file, with a small if test that checks your function
Sub-task 2 (compare)
Here we will sort the teams in a table for the group. Print functions etc. are already ready, the only thing missing is a compare function that determines the order of the layers. The decision is made with several rules, where we use the next one when all previous rules do not give one winner:
(1) Larger score PT
(2) Larger target difference DG
(3) Several scored goals GF
(4) The winner of the direct match between the two teams
(we ignore a situation where there are more than two teams that are exactly the same when we come to this rule)
(5) Drawing of lots
Create a function compare (matches, data, a, b) there
matches is the list of match results in the format above,
data is a finished dict with statistics in the format above,
a and b are two strings with the names of 2 national teams
(we include data as an argument so that we can ignore the function in Part 1.
We can always assume that data == make_stats (matches)
The function should return the number 1 if layer a is higher in the table than layer b
The function should return the number -1 if layer b is higher in the table than layer a
The function should print f "LOTTERY {a} {b}" and return the number 0 if the situation is a draw between a and b
Python Developer
I have read your job description and I am pretty sure that I can complete every bit of your requirements.
Further details and cost can be discussed in chat
Note: I am available to start right now!
Dear Hiring Manager,
I have read out your job description and the requirements for the job.I am a professional Artificial intelligence and machine learning programmer . I have over 3 years of experience in working on different projects like:
* Facial Recognition * Car Detection
* Car speed analysis * Chatbot based on AI and ML
* Time Series
while applying the following techniques:
* LSTM *CNN(2D and 3D)
* MTCNN *RCNN
I have worked in diversity of Technologies like:
*TENSORFLOW *KERAS
*NEURAL NETWORKS *PYTORCH
* SKLearn
Working with me will become totally satisfactory results for you! I’ve become a pro and have my
own technical methods of handling situations.
kindly pin me back for further discussions and to initiate the work asap.
Best Regards,
Hello,
I've complete MS Software Engineering. I've 5-Year experience in Core Python development.
My Core Skills are Machine Learning and AI - Deep Learning - Tensorflow - Pytorch - OpenCV - Deep Learning - Data Analysis K-mean - ID3 - Bayesian theorem - confusion matrix
I'm excited with feeling that I would be able to satisfy your requirements Within Deadline. Please leave a message on my chat so we can discuss the project.
Looking forward to your response,
Best Regards:
Aqeel Ahmed
Hello?
How are you?
Thanks for posting this job.
I am a Senior Python developer with 7+ years.
I have been doing this kind of python projects many times.
Please let me know.
Best Regards
Hi
I have checked your project description. I have excellent programming and
development skills. Contact me with all the details and requirements for
your project for further discussion. I will provide you with dedicated support
and follow-up.
Regards
Farah Khan
Hi there
Python expert here(for over 8 years)
if you hire me you can surely save your time and money
You can see many python jobs in my profile
wish a long term relation
Looking forward to discussing more details while doing the interview.
Best regards
Hello,
If you are looking for some assistance or guidance in python, AI /ML, Backend, Flask, Django, Web Scraping, Data Structure, Algorithms and anything at all, we are the organization you are looking for. Our team has been working in this field for a very long time and we have been training a lot of interns in this domain. We would love to see you grow. Do reach out to us for the same.
Hi, How are you?
I am very interested in your project.
I am an expert in math, physics.
I have +5 experiences in matlab, python, R Programming.
I read your description for project carefully.
I’ve worked on several similar projects like your project.
I’m interested to hear more about the project.
If you award me the project, I’d be pleased to discuss this further and get started for you as soon as possible.
Thanks!
• Hi
• Do you need classes?
• Do you need help in your Quiz, Assignment or Exam?
• If "YES" then you are at right place.
• DW Solution Online is providing online classes for all grades and subjects with highly qualified Experts. We are also solving your problems, assignments quizzes and FYP. Our trial is always free. If you need any kind of help then contact us.
• We have the best experts team in Biology, Chemistry, Accounting, Statistics, Mathematics, Software(AutoCAD, Microsoft, Programming) and the Medical and Engineering Field. We're providing a free Online trial class.
• Our goal is to encourage and motivate students.
• We're appreciating the ability to maintain skills, discipline and deal with challenging behaviour.
• We have a full plan to improve your skills. We have the best collection of syllabus books, assignments and quizzes that will help you to improve your classes. We have a record to prepare Our students for the best one in their career. We have flexible timing for you.
• Feel free to contact us.
I have 5 years of Experience in C , C++ , PYTHON , DATA STRUCTURE , ALGORITHMS HTML , CSS , JAVASCRIPT , DJANGO , AWS , GITHUB . I am interested in the project Need help with all the essentials details and I would like to offer my services and skills to finish this project successfully. I will offer you unlimited revisions and modifications until you are satisfied with my work.
You are welcome to check my portfolio and to make sure you got the right person for this job.
I have my major expertise in C++ Java & Python. I have done many projects and have experience of 4+ years. Just check me out. I will complete your project. I’ve checked all the details! I won't disappoint you. I would love to do it...!!!
I am really great at these. I would show you best of mine.
Hello,
I have 4 years of experience in python. I have done many projects in the same. I will deliver the work as per your requirements.
Feel free to inbox me
Thank you
Hello Sir/Madam
I have development experience in various Programming Languages, OOP, Data
Structures, Database Driven applications, APIs, Files handling and Data
Transformation, ETL and various frameworks. I assure you an excellent
solution of your project within the time frame and exactly according to
the requirements.
Thanks
@CodingHelpLine
Hey, I have read your problem carefully and I will be able to complete both the tasks. I have very good experience with python and a good knowledge of data structures and algorithms. I have worked with various python libraries and APIs. I've also worked on several similar projects and am confident to complete your project with high quality on time.
Thanks
I have completed Bachelor Of Engineering from Rajiv Gandhi Proudyogiki Vishwavidyalaya (State Technological University of M.P). In 2019 and then completed Certification in Advance Precision Engineering in 2021.
I have worked in Amazon Web Services (India) as a Virtual Customer Service Associate. With a broad skill set of covering facets in Communication & Human Relations.
Now I'm working in Anncode Solutions Pvt. Ltd as an Intern.
I'm working here on Python
Hi,
I'm a python programmer I read your project and it is very interesting,
I wrote the code already and I can deliver it to you as soon as you accept my bid.