Creative Brain
News
Updating...

Featured

[Featured][recentbylabel]

Featured

[Featured][recentbylabel]

Sunday, November 17, 2019

Python basics: Casting with examples

Casting in python is therefore done using constructor functions:

  • int() - constructs an integer number from an integer literal
  • float() - constructs a float number from an integer literal
  • str() - constructs a string from a wide variety of data types



\Creating a casting :

/test.py  ------ file:
x = int(2)   # x will be 2
y = int(5.8) # y will be 5 
z = int("6") # z will be 6

x = float(1)     # x will be 1.0 
y = float(2.8)   # y will be 2.8 
z = float("3")   # z will be 3.0 
w = float("4.2") # w will be 4.2

x = str("s1") # x will be 's1' 
y = str(2)    # y will be '2' 
z = str(3.0)  # z will be '3.0'

Friday, November 15, 2019

Python basics: Python Lambda

Introduction of Lambda:
A lambda function that adds 10 to the number passed in as an argument, and print the result.




Creating a Lambda :
/test.py  ------ file:
newLam =  lambda x : x + 5
print(newLam(5)) --- The expression is executed and the result is returned
Output: 10 --- (5+5 = 10)
A lambda function that multiplies argument a with argument b

x = lambda a, b : a * b 
print(x(5, 6))

A lambda function that sums argument a, b, and c

x = lambda a, b, c : a + b + c 
print(x(5, 6, 2))

How to create tuple in Python

Introduction of Tuple:
A tuple is a collection that is ordered and unchangeable. In Python, tuples are written with round brackets.




/Create a new Tuple:

/tuple.py  ------ file:
newtuple[ "monitor","mouse", "CPU"]
print(newtuple)
print(newtuple[1])  --- for print the first item
Output : monitor

print(newtuple[-1]) --- for print the last item
Output : CPU

...

Wednesday, November 13, 2019

A new Payment gateway: Facebook Pay


Introduction

Facebook introduced a new payment system called "Facebook Pay", it is which will provide people with a convenient, secure and consistent payment experience across Facebook, Messenger, Instagram, and WhatsApp. 

Features:

  • You can add a payment method once then use Facebook Pay where available to make payments and purchases.
  • You can make payments across Facebook, Messenger, Instagram, and WhatsApp. 
  • You can view payment history, manage payment methods and update your settings the same as "Google Pay".
  • You will get real-time customer support via live chat etc.

Tuesday, November 12, 2019

Grab Ruiner (Game) From Epic Store

Grab your favorite video game from Epic Store every week. Just visit their official, website or install their game Installer and grab expensive video games every week.



Name: Ruiner
Platform: Windows
Developer: Reikon Games
Publisher: Devolver Digital
Stable Release: September 2017
Giveaway will end November 14, 2019, go-ahead
Info: Ruiner is an action video game developed by Lightspeed Studios and published by Nvidia. It was released on 6 June 2019 for Microsoft Windows and Linux.

Learn More: Neon Boost Game

Hey, In this post I’m gonna talk about the game Neon Boost, pc system requirements, how can you download the game for free and much more!


Additional Information:
Name: Neon Boost
Platform: Windows
Developer: Sample Text Studio
Publisher: Sample Text Studio
Info: Neon Boost is a free to play first-person rocket jumper video game with neon graphics. Developed and published by Sample Text Studio, it was released on 20 May 2019 for Microsoft Windows.
Run, Wall-Run, Slide, and most importantly, use your weapon to Rocket – Jump and get over the obstacles!
Minimum System Requirements
  • OS: Windows 10
  • Processor: Intel i7 CPU @ 2.6GHz or higher
  • Memory: 8 GB RAM
  • Graphics: Nvidia GTX 750
  • DirectX: Version 9.0
  • Storage: 2 GB available space
Recommended System Requirements
  • OS: Windows 10
  • Processor: Intel i7 CPU @ 2.6GHz or higher
  • Memory: 16 GB RAM
  • Graphics: Nvidia GTX 980
  • DirectX: Version 9.0
  • Storage: 2 GB available space
Neon Boost: Key Features
  • 72 levels (36 standard levels + 36 “Lights Off” variants)
  • Alternative Game Mode: Lights Off
  • An original Synthwave-inspired soundtrack
  • Achievements!

Play on 3 different worlds:

  • Laser City
  • Tesla World
  • Cosmic Highwa
Get the game from steam or visit their official website finds out more information about it.

Featured

[Featured][recentbylabel2]

Featured

[Featured][recentbylabel2]
Notification
Get notification from us, just click on 'subscribe' button!
Subscribe