What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-27 23:10:03
how to make tic tac toe in python
#Tic Tac Toe game in python by techwithtim board = [' ' for x in range(10)] def insertLetter(letter, pos): board[pos] = letter def spaceIsFree(pos): return board[pos] == ' ' def printBoard(board): print(' | |') print(' ' + board[1]... Add solution -
-
VBA 2022-02-19 07:45:10
excel vba delete empty rows
' Deletes empty rows dim rRange As Range, rowsCount As Long, i As Long Set rRange = ActiveSheet.Range("A1:B100") rowsCount = rRange.rows.Count For i = rowsCount To 1 Step -1 If WorksheetFunction.CountA(rRanges.rows(i)) = 0 Then rRan... Add solution -
Python 2022-02-18 14:25:46
list count frequency python
import collections a = [1,1,1,1,2,2,2,2,3,3,4,5,5] counter=collections.Counter(a) print(counter) # Counter({1: 4, 2: 4, 3: 2, 5: 2, 4: 1}) print(counter.values()) # [4, 4, 2, 1, 2] print(counter.keys()) # [1, 2, 3, 4, 5] print(counter.most_common(3)) # [(... Add solution -
VBA 2022-02-16 16:20:25
excel vba delete rows
' Deletes empty rows dim rRange As Range, rowsCount As Long, i As Long Set rRange = ActiveSheet.Range("A1:B100") rowsCount = rRange.rows.Count For i = rowsCount To 1 Step -1 If WorksheetFunction.CountA(rRanges.rows(i)) = 0 Then rRan... Add solution -
Java 2022-02-16 03:25:04
android findviewbyid from item.actionView returns null
item.setActionView(R.layout.counter_action_bar_notification_icon); final View menu_hotlist = MenuItemCompat.getActionView(item); TextView ui_hot =(TextView) menu_hotlist.findViewById(R.id.hotlist_hot); ui_hot.setText(Integer.toStr... Add solution