Sunday, November 3, 2013

Python Data Types Code Example - පයිතන් දත්ත වර්ග

x = []
for i in range(0,10):
    x.append(i)
print x
print "______________________________________"

y = x * 10

x = "Hello World!"

print x
print "______________________________________"
print y

# What are X and Y?

===================================


#############
# Arithmetic
#############
4 + 4 == 8
3 - 5 == -2
16 / 2 == 8
16 * 4 == 64
3 % 2 == 1 # Modulus

# Long Int Conversion - Useful for function type mismatches - Not needed here.
100000000000000000000L + long(100) == 100000000000000000100L

======================

##########
# Strings
##########

a = "Hello"
b = "World!"

# Concatenation
a + " " + b == "Hello World!"

# Repetition and Concatenation
a * 3 + " " + b == "HelloHelloHello World!"
(a + " ") * 3 + b == "Hello Hello Hello World!"

# Indexing
b[2] == "r"

# Conversion of data to string - Sesame Street:
c = 7 # Backquote ` ` or str() operations
( a + " number " + `c` ) and ( a + " number " + str(c) ) == "Hello number 7"

Friday, November 1, 2013

ICT & Digital Media helps Kandy Youth to win the World Award



YES AYV Creative Youth Media Project implemented by Shilpa Sayura has won WSYA 2013 Award. YES AYV is a Sri Lankan platform that has trained more than 100 youngsters in digital media creation in order to make an impact in the local community with the help of creative digital art. YES AYV Creative Youth Media Project started in 2011 with UNHABITAT and Adobe Youth Voices support. They have trained more than 100 under-served youngsters in digital media creation, enabled collaboration, expression, dialog and digital journalism to report on issues related to them in pursuit of truth, made success in creation and publishing of digital media on interactive social platforms making them active participants in the public interest of their community, country and world. The think an effective use of media creation tools, Social Networks and Mobiles inspires youth to use digital journalism to inquire MDG related issues.

http://www.youthaward.org/winners/yes-ayv-creative-youth-media-project


The World Summit Youth Award (WSYA) is a unique global contest which brings together young developers and digital entrepreneurs under 30 years of age - who use internet and mobile technology to put the UN Millennium Development Goals (MDGs) into action and make a difference.

The WSYA selects and promotes best practice in e-Content. It demonstrates young people's potential to create outstanding digital contents and serves as a platform for people from all UN member states to work together in the efforts to reach the Millennium Development Goals (MDGs).

WSYA Award was given away at WSA Global Congress held in Sri Lanka.