This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = input("Enter your name: \n\n") | |
length = len(i) | |
for x in range(0, length): | |
c = i[x] | |
c = c.upper() | |
if (c == "A"): | |
print(" ****** \n * * \n ****** \n * * \n * * \n\n") | |
elif (c == "B"): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""tictactoe game for 2 players made by AMRIT SAHANI""" | |
from __future__ import print_function | |
choices = [] | |
for x in range (0, 9) : | |
choices.append(str(x + 1)) | |
playerOneTurn = True | |
winner = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
class BankAccount | |
{ | |
String customerName; | |
String address; | |
int accountNumber; | |
double accountBalance; | |
boolean canWithdraw; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
class Node{ | |
{ | |
int info; | |
Node next; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class Node{ | |
int info; | |
Node next; | |
Node prev; | |
} | |
public class DLinkedList | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package list; | |
import java.util.Scanner; | |
class Node | |
{ | |
int info; | |
Node next; | |
} | |
// Node Has two Parts | |
// 1. information | |
// 2. pointer value |