What language is this, seems its Ruby? [on hold]

This function (source http://www.electricmonk.nl/log/2011/09/28/evolutionary-algorithm-evolving-hello-world/) is written in using :

def fitness(source, target):    fitval = 0    for i in range(0, len(source)):       fitval += (ord(target[i]) - ord(source[i])) ** 2    return(fitval) 

What language is this function written ?

Searching for 'ord' references Ruby. But I'm not sure if ** is a valid operator.

Replay

Category: programming languages Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.120 (s). 12 q(s)