Categories
Mastering Development

If cell value = Peter then stop and restart concatenation

I have this sheet. Col A: Peter, James, George, etc. Sometimes in this long column there is the word Peter or Peter Smith or Peter Roy again. Col C: Usually it is empty. Only whenever there is Peter or his variants in Col A, then there is a number at the corresponding cell of Col […]

Categories
Mastering Development

If cell value = Peter then stop and restart concatenation

I have this sheet. Col A: Peter, James, George, etc. Every now and then, in this long column there is the word Peter or Peter Smith or Peter Roy again. Col C: Usually it is empty. Only whenever there is Peter or his variants in Col A, then there is a number at the corresponding […]

Categories
User Help

Upgrade 2011 Macbook Pro or buy new NUC

Closed. This question is opinion-based. It is not currently accepting answers. Update the question so it can be answered with facts and citations. This will help others answer the question. You can edit the question or post a new one. Closed 5 mins ago by jmargolisvt, kaylum, franklinsijo. (Private feedback for you) So, I’ve got […]

Categories
Ask Mathematics

firstOrderLogic – ∃xy.(P(x) ∧ ¬P(y))

I’m trying to make a model to satisfy the following formula ∀xyz.((R(x,y) ∧ R(y,z)) → R(z,z)) ∃xy.(P(x) ∧ ¬P(y)) ∀x ∃y.(R(x,y) ∧ x ≠ y) I made this. D= {Susan, George, Bob, Emma, Sara, Ryan, Jacob} I(P) = {Susan, George, Bob, Emma} I(R) = {〈George, Emma〉, 〈Emma, Bob〉, 〈Bob, Bob〉, 〈Bob, Emma〉, 〈Emma, Emma〉, 〈Susan, […]

Categories
Development

How to save and load a list in a txt file

I have a list of names list = [“Bob”, “Fred”, “George”, “Garry”] and I would like to be able to save it after changing it (like if I were to add another name to the list) and then load it again later. So far I save it by: text_file = open(“/Users/xxxxxx/Desktop/names.txt”, “w”) text_file.write(str(list)) text_file.close() print(“Your […]

Categories
Development Javascript

javascript array.Join continious srings values into new array

i have this array = [“john”, “mike”, “george”, 55, “hello”, 344, “goodmorning”] and i want to take this:[“johnmikegeorge”,55,”hello”,344,”goodmorning”].I want where there are continuous strings to unite them into one. var s = “” var new_data = [] var pin = [“john”, “mike”, “george”, 55, “hello”, 344, “goodmorning”] for (let i = 0; i < pin.length; […]

Categories
Development

Splitting a tuple with list of tuples that generates a family tree

Let us use tuples and lists to represent a family tree. Each person is represented as a tuple. The first element of the tuple is this person’s name. The second element of the tuple is a list that contains this person’s children. Each child is represented as a tuple itself. If a person has no […]

Categories
Development

how to find lowercase, first letter and change them into uppercase in python

I want to find out if any of those names start with lowercase and if they do, change it to uppercase. “`unknown_list = (‘toby’, ‘James’, ‘kate’, ‘George’, ‘rick’, ‘Alex’, ‘Jein’, ‘medelin’)

Categories
Development

gganimate change axes between frames

I am trying to plot the top 3 NHL scorers over time using gganimate. Currently, I have a column chart where the x axis shows player names and the y axis shows number of goals for each player. Here’s a static version of what I have: library(ggplot2) data <- data.frame(name=c(“John”,”Paul”,”George”,”Ringo”,”Pete”,”John”,”Paul”,”George”,”Ringo”,”Pete”), year = c(“1997”, “1997”, “1997”, […]

Categories
Development

Lining up people based on tuples inside list

A group of students need to line up for the procession of an event. We only have the information about every pair of students who are next to each other. We use a list of tuples to represent this line-up information: Each element of the list is a tuple that contains the name of a […]