Create an account


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,137
» Latest member: SeX
» Forum threads: 21,953
» Forum posts: 22,824

Full Statistics

Online Users
There are currently 3402 online users.
» 2 Member(s) | 3394 Guest(s)
Applebot, Baidu, Bing, DuckDuckGo, Google, Yandex, anniket986, SeX

 
  (Free Game Key) Dex - Free GOG Game
Posted by: xSicKxBot - 08-27-2022, 03:30 AM - Forum: Deals or Specials - No Replies

Dex - Free GOG Game

This giveaway is for GOG, its a platform for distributing games, similar to steam and others

- Go to the giveaway page
- Login or make an account if you do not have one
- Go to the GOG Homepage
- https://www.gog.com/
- Scroll a bit down until you see the banner for the game Dex
- Its and above "Highest discount ever"
- Wait for the button to appear on the right
- Click on the "Yes, and claim the game" button
- That's it

Store Page[www.gog.com]
Free to claim for less than 72 hours

We are welcoming everyone to join our discord[discord.gg]. We are more active there on finding giveaways, small or large, and there are daily raffles you can participate.

?GrabFreeGames.com ?Twitter ?Steam Curator ?Facebook[fb.me]?Discord[discord.gg]
❤️Support us: ✔️HumbleBundle Partner[www.humblebundle.com] Epic Tag: GrabFreeGames


https://steamcommunity.com/groups/GrabFr...5458468366

Print this item

  PC - Thymesia
Posted by: xSicKxBot - 08-27-2022, 03:30 AM - Forum: New Game Releases - No Replies

Thymesia



Thymesia is a gruelling action-RPG with fast-paced combat and an intricate plague weapon system. In a kingdom where death spreads, play as a mysterious character known by the code name "Corvus". Prey upon your enemies, wield the power of disease and find the truth in your own memories.

Publisher: Team17

Release Date: Aug 18, 2022




https://www.metacritic.com/game/pc/thymesia

Print this item

  [Tut] How to Create a Python Tuple of Size n?
Posted by: xSicKxBot - 08-26-2022, 10:02 AM - Forum: Python - No Replies

How to Create a Python Tuple of Size n?

5/5 – (1 vote)

Use the tuple concatenation operation * with a tuple with one element (42,) as a right operand and the number of repetitions of this element as a left operand. For example, the expression (42,) * n creates the tuple (42, 42, 42, 42, 42) for n=5.

Let’s play with an interactive code shell before you’ll dive into the detailed solution!

Exercise: Initialize the tuple with n=20 placeholder elements -1 and run the code.


Problem Formulation


Next, you’ll learn about the more formal problem and dive into the step-by-step solution.

Problem: Given an integer n. How to initialize a tuple with n placeholder elements (e.g., 42)?

# n=0 --> ()
# n=1 --> (42,)
# n=5 --> (42, 42, 42, 42, 42)

Example 1 – Tuple Concatenation


Use the tuple concatenation operation * with a tuple with one element (42,) as right operand and the number of repetitions of this element as left operand. For example, the expression (42,) * n creates the tuple (42, 42, 42, 42, 42) for n=5.

n = 5
t = (42,) * n
print(t)
# (42, 42, 42, 42, 42)

Note that you cannot change the values of a tuple, once created, because unlike lists tuples are immutable. For example, trying to overwrite the third tuple value will yield a TypeError: 'tuple' object does not support item assignment.

>>> x = (42,) * 5
>>> x[0] = 'Alice'
Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> x[0] = 'Alice'
TypeError: 'tuple' object does not support item assignment

Example 2 – N-Ary Tuple Concatenation


You can also use a generalization of the unary tuple concatenation — I call it n-ary tuple concatenation — to create a tuple of size n. For example, given a tuple t of size 3, you can create a tuple of size 9 by multiplying it with the integer 3 like so: t * 3.

Here’s an example:

simple_tuple = ('Alice', 42, 3.14)
complex_tuple = simple_tuple * 3 print(complex_tuple)
# ('Alice', 42, 3.14, 'Alice', 42, 3.14, 'Alice', 42, 3.14)

Example 3 – Tuple From List


This approach is simple: First, create a list of size n. Second, pass that list into the tuple() function to create a tuple of size n.

n = 100 # 1. Create list of size n
lst = [42] * n # 2. Change value in (mutable) list
lst[2] = 'Alice' # 3. Create tuple from list AFTER modification
t = tuple(lst) # 4. Print tuple
print(t)
# (42, 42, 'Alice', 42, 42, ...)

Recommended Tutorial: Create a List of Size n

Example 4 – Generator Expression (List Comprehension)


You can pass a generator expression into Python’s built-in tuple() function to dynamically create a tuple of elements, given another iterable. For example, the expression tuple(i**2 for i in range(10)) creates a tuple with ten square numbers.

Here’s the code snippet for copy&paste:

x = tuple(i**2 for i in range(10))
print(x)
# (0, 1, 4, 9, 16, 25, 36, 49, 64, 81)

In case you need some background on this terrific Python feature, check out my article on List Comprehension and my best-selling Python textbook on writing super condensed and concise Python code:

Python One-Liners Book: Master the Single Line First!


Python programmers will improve their computer science skills with these useful one-liners.

Python One-Liners

Python One-Liners will teach you how to read and write “one-liners”: concise statements of useful functionality packed into a single line of code. You’ll learn how to systematically unpack and understand any line of Python code, and write eloquent, powerfully compressed Python like an expert.

The book’s five chapters cover (1) tips and tricks, (2) regular expressions, (3) machine learning, (4) core data science topics, and (5) useful algorithms.

Detailed explanations of one-liners introduce key computer science concepts and boost your coding and analytical skills. You’ll learn about advanced Python features such as list comprehension, slicing, lambda functions, regular expressions, map and reduce functions, and slice assignments.

You’ll also learn how to:

  • Leverage data structures to solve real-world problems, like using Boolean indexing to find cities with above-average pollution
  • Use NumPy basics such as array, shape, axis, type, broadcasting, advanced indexing, slicing, sorting, searching, aggregating, and statistics
  • Calculate basic statistics of multidimensional data arrays and the K-Means algorithms for unsupervised learning
  • Create more advanced regular expressions using grouping and named groups, negative lookaheads, escaped characters, whitespaces, character sets (and negative characters sets), and greedy/nongreedy operators
  • Understand a wide range of computer science topics, including anagrams, palindromes, supersets, permutations, factorials, prime numbers, Fibonacci numbers, obfuscation, searching, and algorithmic sorting

By the end of the book, you’ll know how to write Python at its most refined, and create concise, beautiful pieces of “Python art” in merely a single line.

Get your Python One-Liners on Amazon!!



https://www.sickgaming.net/blog/2022/08/...of-size-n/

Print this item

  (Indie Deal) Movie Quest Giveaways, Frontier & Ubisoft Sales
Posted by: xSicKxBot - 08-26-2022, 10:02 AM - Forum: Deals or Specials - No Replies

Movie Quest Giveaways, Frontier & Ubisoft Sales

Movie Quest Giveaways
[www.indiegala.com]

https://www.youtube.com/watch?v=icC3BbrxRQI
[www.indiegala.com]
[www.indiegala.com]
https://www.youtube.com/watch?v=jvYSjvibfm4


https://steamcommunity.com/groups/indieg...7417618431

Print this item

  (Free Game Key) Ring of Pain - Free Epic Game
Posted by: xSicKxBot - 08-26-2022, 10:02 AM - Forum: Deals or Specials - No Replies

Ring of Pain - Free Epic Game

Visit the store page and add the games to your account:

Store Page[store.epicgames.com]

The games are free to keep until September 1st 2022 - 15:00 UTC.

Next week's freebie:
Shadow of the Tomb Raider: Definitive Edition
Submerged: Hidden Depths
Knockout City™️ - Armazillo Bundle (DLC)

We are welcoming everyone to join our discord[discord.gg]. We are more active there on finding giveaways, small or large, and there are daily raffles you can participate.

?GrabFreeGames.com ?Twitter ?Steam Curator ?Facebook[fb.me]?Discord[discord.gg]
❤️Support us: ✔️HumbleBundle Partner[www.humblebundle.com] Epic Tag: GrabFreeGames


https://steamcommunity.com/groups/GrabFr...5454975303

Print this item

  News - The Boys Season 4 Lands The Walking Dead's Jeffrey Dean Morgan
Posted by: xSicKxBot - 08-26-2022, 10:02 AM - Forum: Lounge - No Replies

The Boys Season 4 Lands The Walking Dead's Jeffrey Dean Morgan

Jeffrey Dean Morgan (The Walking Dead) will be joining the cast of The Boys in Season 4 as a recurring star, according to a release. Morgan's character in Prime Video's satirical comedy has not yet been disclosed.

The role will reunite Morgan with Supernatural Eric Kripke, who serves as showrunner of The Boys. Earlier this summer, Kripke told E! News, "Jeffrey Dean Morgan is a superfan of the show, so he and I are talking. We're trying to figure out something for Season Four. Nothing finalized yet, but he and I are chatting and emailing and seeing it we can make it work with his busy schedule. So, stay tuned on that."

Continue Reading at GameSpot

https://www.gamespot.com/articles/the-bo...01-10abi2f

Print this item

  PC - Rollerdrome
Posted by: xSicKxBot - 08-26-2022, 10:02 AM - Forum: New Game Releases - No Replies

Rollerdrome



The year is 2030, and you are a competitor in a brutal new bloodsport – Rollerdrome. Combine stylish skate tricks with devastating slow-mo kills, picking your weapons with care to land the killing blow and make it to the end of the round… and maybe, with enough skill and hard work, to the end of the Championship. [Roll7]

Publisher: Private Division

Release Date: Aug 16, 2022




https://www.metacritic.com/game/pc/rollerdrome

Print this item

  [Tut] How to Print a String and an Integer
Posted by: xSicKxBot - 08-25-2022, 10:37 AM - Forum: Python - No Replies

How to Print a String and an Integer

5/5 – (1 vote)

Problem Formulation and Solution Overview


In this article, you’ll learn how to print a string and an integer together in Python.

To make it more fun, we have the following running scenario:

The Finxter Academy has decided to send its users an encouraging message using their First Name (a String) and Problems Solved (an Integer). They have provided you with five (5) fictitious users to work with and to select the most appropriate option.


First_Name Puzzles Solved
Steve 39915
Amy 31001
Peter 29675
Marcus 24150
Alice 23580


? Question: How would we write code to print a String and an Integer?

We can accomplish this task by one of the following options:

  • Method 1: Use a print() function
  • Method 2: Use the print() function and str() method
  • Method 3: Use f-string with the print() function
  • Method 4: Use the %d, %s and %f operators
  • Method 5: Use identification numbers
  • Method 6: Use f-string conditionals
  • Bonus: Format CSV for output

Method 1: Use the print() function


This example uses the print() function to output a String and an Integer.

print('Steve', 39915)

This function offers the ability to accept various Data Types and output the results, separated by commas (,) to the terminal.

Although not the most aesthetically pleasing output, it gets the job done. The print() function at its most simplistic level!


Steve 39915

YouTube Video


Method 2: Use the print() function and str() method


This example uses the print() function and the str() method to format and output a sentence containing a String and an Integer.

print('Steve has solved ' + str(39915) + ' puzzles!')

To successfully output the contents of the print() function, the Integer must first be converted to a String. This can be done by calling the str() method and passing, in this case, 39915 as an argument.


Steve has solved 39915 puzzles!

YouTube Video


Method 3: Use f-string with print() function


This example uses the f-string inside the print() function. This method uses curly brackets ({}) to accept and display the data.

first_name = 'Steve'
solved = 39915
print(f'{first_name} has solved {solved} puzzles to date!')

Above, two (2) variables are declared: first_name and solved.

The print() function is called and passed these two (2) variables, each inside curly braces ({}). This indicates that Python should expect two (2) variables of unknown Data Types. The print() function executes and sends this output to the terminal.


Steve has solved 39915 puzzles!

YouTube Video

What if you need to print out all Finxter users? This example assumes the data is saved to separate Lists and output using a For loop.

f_name = ['Steve', 'Amy', 'Peter', 'Marcus', 'Alice']
f_solved = [39915, 31001, 29675, 24150, 23580] for i in range(len(f_name)): print(f'{f_name[i]} has solved {f_solved[i]} puzzles to date!')

Steve has solved 39915 puzzles to date!
Amy has solved 31001 puzzles to date!
Peter has solved 29675 puzzles to date!
Marcus has solved 24150 puzzles to date!
Alice has solved 23580 puzzles to date!

YouTube Video


Method 4: Use %d, %s and %f Operator


This examples uses the %d (decimal value), the %s (string value), and %f (float value) inside the print() function to output the fictitious Finxter user’s data.

f_name = ['Steve', 'Amy', 'Peter', 'Marcus', 'Alice']
f_solved = [39915, 31001, 29675, 24150, 23580]
f_avg = [99.315, 82.678, 79.563, 75.899, 71.233] i = 0
while i < len(f_name): print("%s solved %d puzzles with an average of %3.2f." % (f_name[i], f_solved[i], f_avg[i])) i += 1

Above, three (3) Lists are declared. Each List carries different information for each user (f_name, f_solved, f_avg).

The following line instantiates a while loop and a counter (i) which increments upon each iteration. This loop iterates until the final element in f_name is reached.

Inside the loop, the %s (accepts strings) is replaced with the value of f_name[i]. Then, %d (accepts integers) is replaced with the value of f_solved[i]. Finally, the %3.2f (for floats) value of is replaced with f_avg[i] having two (2) decimal places. The output displays below.


Steve solved 39915 puzzles with an average of 99.31.
Amy solved 31001 puzzles with an average of 82.68.
Peter solved 29675 puzzles with an average of 79.56.
Marcus solved 24150 puzzles with an average of 75.90.
Alice solved 23580 puzzles with an average of 71.23.

?Note: In the %3.2f annotation, the value of three (3) indicates the width, and 2 indicates the number of decimal places. Try different widths!

YouTube Video


Method 5: Use identification numbers


This example uses field identification numbers, such as 0, 1, 2, etc., inside the print() function to identify the fields to display and in what order.

f_name = ['Steve', 'Amy', 'Peter', 'Marcus', 'Alice']
f_solved = [39915, 31001, 29675, 24150, 23580] for i in range(len(f_name)): print('{0} solved {1} puzzles!'.format(f_name[i], (format(f_solved[i], ',d'))))

Above, two (2) Lists are declared. Each List carries different information for each Finxter user (f_name, f_solved).

Then, using a For loop, the code runs through the above Lists. The numbers wrapped inside curly braces ({0}, {1}) indicate holding places for the expected data. This data appears inside the format() function ((format(f_solved[i], ',d')))) and are output to the terminal.


Steve solved 39,915 puzzles!
Amy solved 31,001 puzzles!
Peter solved 29,675 puzzles!
Marcus solved 24,150 puzzles!
Alice solved 23,580 puzzles!

?Note: The data in f_solved is formatted to display a thousand comma (',d').

Method 6: Use f-string and a conditional


This example uses an f-string and a conditional to display the results based on a condition inside the print() function.

f_name = ['Steve', 'Amy', 'Peter', 'Marcus', 'Alice']
f_solved = [39915, 31001, 29675, 24150, 23580]
print(f'Has Alice solved more puzzles than Amy? {True if f_solved[4] > f_solved[1] else False}')

Above, two (2) Lists are declared. Each List carries different information for each Finxter user (f_name, f_solved).

Inside the print() function, the code inside the curly braces ({}) checks to see if the number of puzzles Alice has solved is greater than the number of puzzles Amy has solved. True or False returns based on the outcome and is output along with the String to the terminal.


Has Alice solved more puzzles than Amy? False


Bonus: Putting it Together!


This article used several ways to format a String and an Integer. However, let’s put this together to generate a custom email body!

The first step is to install the Pandas library. Click here for installation instructions.

import pandas as pd finxters = pd.read_csv('finxter_top5.csv') for _, row in finxters.iterrows(): user_email = row[3] e_body = f""" Hello {row[0]} {row[1]},\n The Finxter Academy wants to congratulate you on solving {row[2]:,d} puzzles. For achieving this, our Team is sending you a free copy of our latest book! Thank you for joining us. The Finxter Academy """ print(e_body.strip())

This code reads in a fictitious finxter_top5.csv file.


First_Name Last_Name Solved Email
0 Steve Hamilton 39915 steveh@acme.org
1 Amy Pullister 31001 amy.p@bminc.de
2 Peter Dunn 29675 pdunn@tsce.ca
3 Marcus Williams 24150 marwil@harpoprod.com
4 Alice Miller 23580 amiller@harvest.com

Next, a For loop is instantiated to iterate through each row of the DataFrame finxters.

?Note: The underscore (_) character in the for loop indicates that the value is unimportant and not used, but needed.

For each loop, the user’s email address is retrieved from the row position (row[3]). This email address saves to user_email.

Next, the custom email body is formatted using the f-string and passed the user’s First Name and Last Name in the salutation ({row[0]} {row[1]}). Then, the solved variable is formatted to display commas (,) indicating thousands ({row[2]:,d}). The results are saved to e_body and, for this example, are output to the terminal.

For this example, the first record displays.


Hello Steve Hamilton,
The Finxter Academy wants to congratulate you on solving 39,915 puzzles. For achieving this, our Team is sending you a free copy of our latest book. Thank you for joining us. The Finxter Academy

?A Finxter Challenge!
Combine the knowledge you learned here to create a custom emailer.
Click here for a tutorial to get you started!


Summary


These six (6) methods of printing Strings and Integers should give you enough information to select the best one for your coding requirements.

Good Luck & Happy Coding!


Programming Humor





https://www.sickgaming.net/blog/2022/08/...n-integer/

Print this item

  (Indie Deal) Supernatural Tales Bundle, Truck Sim, new sales & more
Posted by: xSicKxBot - 08-25-2022, 10:37 AM - Forum: Deals or Specials - No Replies

Supernatural Tales Bundle, Truck Sim, new sales & more

Supernatural Tales Bundle | 8 e-books | 93% OFF
[www.indiegala.com]
Summer season is nearly over...but it is never too early for Halloween Fall season! Get your supernatural senses ready, for a collection of books that defies the law of nature: Madison Dark, Fractures, Bayou Arcana, Ritual 2: The Resurrection & the Alpha Gods series with Betrayal, Emergence, Omnibus & Revelation.

https://youtu.be/gnphAVXFYYw
SCS Software Sale, Euro/American Truck Simulator Deals
[www.indiegala.com]
https://www.youtube.com/watch?v=CdzM2b9NnnY
Stay Inside, Stay Safe and Enjoy Good Games.
Check out IndieGala on Twitter, YouTube & Facebook[www.facebook.com]


https://steamcommunity.com/groups/indieg...7412188898

Print this item

  News - Ex-GTA 5 Boss' New Game Reacts To NFTs And Crypto Concerns
Posted by: xSicKxBot - 08-25-2022, 10:37 AM - Forum: Lounge - No Replies

Ex-GTA 5 Boss' New Game Reacts To NFTs And Crypto Concerns

The developer behind the ambitious-sounding game Everywhere, which was unveiled during Gamescom this week, has spoken up to address whether or not the game will use NFTs.

In a post on Reddit (via Ethan Gach), the studio said it was made aware of "some conversation" about Everywhere concerning NFTs and cryptocurrency. People noticed that the studio behind the game, former GTA boss Leslie Benzies' Build A Rocket Boy, is hiring for blockchain-specific positions. Build A Rocket Boy has three open positions pertaining to the blockchain and NFTs specifically.

According to the studio's new statement, these are "research positions." The team is looking into what might be possible with the blockchain and NFTs.

Continue Reading at GameSpot

https://www.gamespot.com/articles/ex-gta...01-10abi2f

Print this item

 
Latest Threads
["Limited"] {{$100 off}}T...
Last Post: anniket986
Less than 1 minute ago
Black Ops (BO1, T5) DLC's...
Last Post: SeX
14 minutes ago
Temu Coupon Code ➤ [alb54...
Last Post: anniket986
33 minutes ago
╭⁠{Working} Temu Coupon C...
Last Post: anniket986
49 minutes ago
["UniQue"]"$40 off"Temu C...
Last Post: anniket986
52 minutes ago
["UniQue"]"$300 off"Temu ...
Last Post: anniket986
1 hour ago
["Latest"] Temu Promo Cod...
Last Post: anniket986
1 hour ago
["UniQue"]"$200 off"Temu ...
Last Post: anniket986
1 hour ago
["Latest"] Temu Discount ...
Last Post: anniket986
1 hour ago
["UniQue"]"$120 off"Temu ...
Last Post: anniket986
1 hour ago

Forum software by © MyBB Theme © iAndrew 2016