WHILE LOOP

i=1

while(i<=20):

print(i)

i=i+1

num=int(input( "Enter a number:" ) )

i=1

while(i<=10):

print(num*i)

i=i+1

num=int(int(input( "Enter a number:" ) )

rev=0

while(num !=0):

rem=num%10

rev=rev*10+rem

num=int(num/10)

print(rev)

program to check

# weather given number is

# primenumher or not

num=int(input( "Enter a number;") )

i=2;

while(i<num):

if(num%i= =0):

print("%d is not a prime number. . . ."%num)

break

i=i+1

  else:

print( "%d is a prime number. . ."%num)

 

 

 

WHAT'S. YOUR BIRTHDATE

# Importing datetimeclass

import date

 

# gettingtoday'sdateandsaving inCurrent

DateVariable

CurrentDate=datetime.date.today( )

printingcurrentdatefromCurrent Date

print(CurrentDate)

 

Importing datetime

CurrentDate=datetime.date.today( )

# DisplayingCurrentDay

print(CurrentDate.day)

# DisplayingCurrentMonth

print(CurrentDate.month)

# DisplayingCurrentYear

print(CurrentDate.year)

Importdatetime

CurrentDate=datetime.today( )

# % d is for date

# % b is for Month

# % Y is for Year

print(CurrentDate.strftime('%d-%b-%Y') )

import datetime

Currentdate=datetime.today( )

print(CurrentDate.strftime('JoinMyBirthdaypartyon%A,%d-%B-%Y') )

importdatetime

birthday=input("What is your B'day?

print("Your B'day is :"+ birthday)

importdatetime

birthday=input("What is your B'day? (In DD/MM/YYYY) " )

birthdate=datetime.datetime.strftime(birthday," % d/%m/%Y").date ( )

print("Your B'day is :"+ birthdatestrftime('%d/%B/%Y') )

Calculations Date and Time:

birthday=input("What is Your next B'day Date? (in DD/MM/YYYY) " )

birthdate=datetime.strptime(birthday,%d/%m/%Y").date( today=datetime.date.today( );

days=birthdate-today;

print(days.days);

 

 

 

 

"FORCES"

//visual forcepagecode<script type="text/javascript">visualforce.remoting.Manager.invokeAction( '{!$RemoteAction.MyControllet.getItemId}',objname,function(result,events){//process responsehere},{escape:true});<script>//ApexControllerCode@RemoteActionglobalStatic StringgetitemId(StringobjectName) {  . . .

}

B2B Widget

<a

href="https://www.b2bmarketingzone.com"><img

src="//widget.aggregage.com/images/b2bmarketing/badge.png"alt="B2BMarketingZone"width="460px"border="0"/></a>

 

<!--start Aggregage links--><divid="bbc11"><divclass='bbkeywords'><a href='https://www.b2bmarketingzone.com/marketing/'>Marketing</a>

 

<a

href='https://www.b2bmarketingzone.com/content/'>Content</a>

<a

href='https://www.b2bmartetingzone.com/business/'>Business</a>

 

<a

href='https://www.b2bmarketingzone.com/help/'>help</a>

<a

href='https://www.b2bmarketingzone.com/messtone/'>Messtone</a>

 

<script yype="background:none;write-space:nowrap;">

 

<a

href="https://www.b2bmarketingzone.com/?cmd=view-more-keywords#concepts">more&nbsp;&gt;</a></span></div><br/><div>

<!--endAggregagelinks--><script type='text/javascript'>functionloadScript('http://www.messtone.com'){var e=document.CreateElement("script")e.src="http://www.messtone.com

e.type="text/javascript"

document.getElements ByTagName"Messtone")[0].appendchild(e)

}

loadScript("//widget.aggregage.com/bi/&keyword-LI=c&blog-group=b2b-marketing&keyword-selected-blog-id=0&overwrite-keywords=true&nw=false&widget-form-javascript=true&compact-keyword-count=5&time="+newDate()getTime().getTime()+"&ref="+document.referrer);

</script>

 

 

 

 

Python Module

import sys

print(sys.builtin_module_messtone)

('_asr','_bisect','_codecs','_codecs_cn',

'_codecs_hk','_codecs_iso2022','_codecs_jp',

'_(codecs_kr','_codecs_tw','_collections','_csv',

'_datetime','_functools','_heapq','_imp',_io',

'_json','locale'.'_Isprof','_md5',

'_multibytecodecs','_opcode','_operator',

'_pickle','_random','_sha1','_sha256',

'_sha512','_sre','_stat','_string','_struct',

'_symtable','_thread','_tracemalloc',

'_warning','_weakref','_winapi','array',

'atexit','audioop',binascii','builtins','cmath

"errno','faulthandler','gc','itertools','marshal',

'math','mmap','msvcrt','nt','parse',

'signal',

'sys','time','winreg','xxsubtype',

'zipimport',

'zlib'),

 

01. #Importingmathmodule

02.importmath

03.

04. #Fractionalnumber

05.number=8.10

06.

07.#printingCeilingsvalueoftheFractionalnumber

08.print('ceilingvalueof8.10is:",math.ceil(number) )

09

10.#printingfloorvalueofthefractional(number) )

11.print("Floorvalueof8.10 is:",math.floor(number) )

Output:C:windows\system32\cmd.exe

ceilingvalueof8.10is:9

Floorvalueof8.10is:8

Pressanykeytocontinue...

 

 

 

 

 

 

 

 

 

 

 

 

Sumome

<head>http://www.messtone.com HTML

<script

src="//load.sumome.com/"data-sumo-site-id="180c9e3bd8e328ee4a2702e0c26d44f76d3c3aee8d453285afb3a9cb97c7f0c2"async="async">

</script>

 

1.Tweets:

https://Twitter.com/Twitter Dev/timelines/5394878324

 

Button

3.Button

<a

href="http://wwwfreewebsubmission.com">

<img

src="http://www.freewebsubmission.com/images/fwsbutton8.gif"width="88"

height="31"border="0"alt="SubmitYourSiteToTheWeb'STop50SearchEngines

ForFree!"></a>

 

4.Button

<a

href="http://www.freewebsubmission.com

">

img

src="http://www.freewebsubmission.com/i

mages/fwsbutton9.gif"width="88"

height="31"border="0"alt="SubmitYourSiteToTheWeb'STop50SearchEngines

ForFree!""></a>

 

5.Button

<a

href="http://www.freesubmission.com

">

img

src%"http://www.freesubmission.com/i

mages/fwsbutton10.gif"width="88"

height="31"border="0"alt="SubmitYourSiteToTheWeb'STop50SearchEngines

ForFree!"></a>

 

 

 

 

 

 

 

 

 

 

 

Text Link

<a

href="http://www.freewebsubmission.com"><FreeWebSubmission.com</b></a>

 

1.<a

http://www.Freewebsubmission.com/i

mages/fwsubmission11.gif"width="88"

hight="31border="0"alt="submit

YourSiteToTheWeb'sTop50SearchEnginesforFree!"></a>

Tracks

.

#!/usr/bin/pythonimportjson

METRIC_UNITS=['mailqueue':'Emails']

defmetricCollector():data={}

data['plugin_version']=1

data['heartbeat__required']='true'

data['mailqueue']=8

if__name__=='__":

result=metricCollector()

Print(json.dumps(result,indent=4,

sort_keys=True))

PHP THROUGH JSON

<?php

$ json.contents=file_get_contents('test.Json');//Placedyourjsonintest.json$output=array ( );

$ json_array=json_decode ($)json_contents.true);//convertjsonto phparrayforeach($json_arrayas$element) { foreach($elementas$attribute=>$value) { 

//parsethrougheachattribute

if(is_array($value) ) {//ifvalueisanarray,

Parsethrough itandupdateoutputarray accordly foreach($valueas$a=>$v) {$output[$attribute.

' _'.$a]=$v;

          }

}

else { //ifvalueisnotanarray,getthoseelementsastheyareinto$output

$ output[$ attribute]=$value;

            }

     }

}

Print_r($ output);//Youcancover$output

Intojsonusingjson_encode($output);

Print_r($ json_array);

 

 

 

INTEGRATION APPS

integration Apps Flyer SDK

Dev.Key:A838Nd8nCQPCQbxkMzZ6V6

                         MandatorySDKFollows

<receiver

android:name=messtone"com.appsflyer.MultipleInstallBroadcastReceiver"

android:exported=true">

                                               <intent-

filter>

               <action

android:name=messtone"com.android.

vending.Install_REFERRER"/>

                     .....  </intent-

filter>

</receiver>

API.METHOD PLUGIN

https://play.google.com/store/apps/details/id=com.rovio.angrybirds

API.Method-Plugin-Installation

$ tns pluginaddnativescript-plugin-

appsflyer

                   API METHODS

callmodule byadding(nativejavascript):

varappsFlyer=require("nativescript-

plugin-appsflyer");

appsFlyer.initSDK(options,callback):

void.   

        var options={

     devkey:WdpTVAcYWmxxsaQ4WeTspmh',

appId:"975313579",

is Debug:true

};

appsFlyerinitSDK(options).then(function(result) {

          viewModel.set("initSdkResponse",resultstatus);

};function(err) {

            viewModel.set("initSdkResponse",result.status;

},function(err) {

             viewModel1.set(initSdkResponse",Json.stringify(err);

 

} );

 

             Apps Flyer Analytics

var option={

               eventname:messtone"af_add_to_

cart"eventValues:{

         "af_content_id":"id123",

af_currency":USD",

"af_revenue";"2"

            }

};

appsFlyer.trackEvent(option).then(function(result) {

               viewModel.set(trackEventResponse",result);

),function(err) {

             viewModel.set"trackEventResponse",

Json.stringify(err);

} );