Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
XII-F
import random i=0 print('\n Made by Shreyas Gupta\n') print('\n Class XII-F Seating Plan\n\n') std = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1] while i<42: std[i] = random.randrange(1,43) j=0 while j<i: if(std[j]==std[i]): std[i] = random.randrange(1,43) j=0 continue j+=1 if((std[i]==10 or std[i]==18 or std[i]==5 or std[i]==27 or std[i]==24 or std[i]==37 or std[i]==7 or std[i]==40 or std[i]==9 or std[i]==11 or std[i]==20) and i<18): continue i+=1 k=0 while(k<42): print((str(std[k])+ ' ').rjust(3), end='') if(k==8 or k==17 or k==26 or k==35): print('\n') if(k==2 or k==5 or k==11 or k==14 or k==20 or k==23 or k==29 or k==32 or k==38 or k==41): print(' ', end='') k = k+1
run
|
edit
|
history
|
help
0
abstractmethod 2
library
S
MBTI
reverse Aufgabe
denemeler
Python wtf ?
Fu 1
afw
Sum