Find Jobs
Hire Freelancers

convert Javascript code to Python

$2-4 USD / hour

Completed
Posted over 9 years ago

$2-4 USD / hour

convert javascript code to python code function dist(x1, y1, x2, y2) { x1 = parseInt(x1); y1 = parseInt(y1); x2 = parseInt(x2); y2 = parseInt(y2); var distance = 0; var _x1 = (y1 & 1) ? x1 + 0.5 : x1; var _y1 = y1; var _x2 = (y2 & 1) ? x2 + 0.5 : x2; var _y2 = y2; var xdif = [login to view URL](_x1 - _x2); var ydif = [login to view URL](_y1 - _y2); if (ydif * 0.5 >= xdif) { distance = ydif; } else { distance = ydif * 0.5 + xdif; } return distance; }
Project ID: 6682996

About the project

2 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been provided
$4 USD in 1 day
5.0 (8 reviews)
4.0
4.0
2 freelancers are bidding on average $4 USD/hour for this job
User Avatar
Hi! I'm skilled in both Javascript and Python. I can get this done right away. Lets talk. Thanks, George
$4 USD in 1 day
4.7 (13 reviews)
4.0
4.0
User Avatar
Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have checked your requirements.i have right skills to work on this assignment my award = superb result = happy client. In a good partnership, good results happen. Good cooking makes good eating!BWe consider our client as our partner. can u provide your email or sky-pe etc for further discussion about the project. I am ready to discuss with you with best Regards
$3 USD in 35 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Reading, United States
5.0
3
Payment method verified
Member since Jun 30, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.